Proctor Posted June 19, 2013 Posted June 19, 2013 Hello: I have an application created using 2014 cad and .net api. When the user enters a custom command, it generates a layout - it creates a copy of a template file that is stored off a website. At any rate, recently, I was asked to change out our company logo to a new one. In the current template, a block was created using the company logo, along with some additional text. (see attach that has old logo and new one underneath) I removed the block and did a imageAttach to first import the new logo; after, I added some additional text and then I used the command block to create the new block out of the logo and the text. I saved the template file. The issue now - for some strange reason, when the user goes to generate a layout using the custom command, it just hangs and hangs and spins and spins, and i have to do ctrl atl delete to get out of it....... What happened? All I have done was to create this block out of a .png picture and some text. If I put back the old template, it all works fine again. What's in this new template that's different to the old? I compared: File size of old = 905 kb File size of new = 621 kb (smaller even...so that's not it) In looking at the properties of the block, the only difference I see is that the position listed on the old is 0 whereas the postion on the new has coordinates: 13.9, 7.11. Does anyone have any ideas that I can look at to help me troubleshoot this issue? Maybe the block was created differently in the first template...or the image was brought in using a different method? Thank you so much, Proctor Quote
ReMark Posted June 19, 2013 Posted June 19, 2013 Could it have anything to do with the "path" to this new block? Quote
Proctor Posted June 19, 2013 Author Posted June 19, 2013 Hi Remark - thank you for your help. How can I check the path to the new block? it may have to do with that.....but I'm uncertain how to check it. thanks again, Proctor Quote
ReMark Posted June 19, 2013 Posted June 19, 2013 You do have a folder where you store your blocks don't you? Quote
Proctor Posted June 19, 2013 Author Posted June 19, 2013 Not sure - when I create the block, the block definition screen appears and when i click on the the name dropdown, I see a bunch of names in there so assuming they get saved somewhere but not sure where that is. Can you tell it where to save them? Thanks again, Proctor Quote
ReMark Posted June 19, 2013 Posted June 19, 2013 All this time and you have no idea where you are saving your blocks too? Try this. Type the following at the command line just as it appears then press the ENTER key... -insert Look at the command line. You'll see something like this: Enter block name or [?]: Type some nonsense letters like xyzabc then press the ENTER key. A message will appear in a window onscreen showing you all the paths AutoCAD searched to find the bogus block. If your new logo block isn't in one of these folders then AutoCAD is not going to find it without you first adding the path under Options > Files > Support Files Search path. I would have thought that you would have a dedicated folder for your blocks and that folder would have sub-folders for unique groups of blocks. Ex. - MyBlocks might be the name of the main folder. Logos might be one of its sub-folders. Are your blocks stored on the network? Quote
SLW210 Posted June 19, 2013 Posted June 19, 2013 Might be something in the Code. Is the block on the website or stored locally? Quote
Proctor Posted June 19, 2013 Author Posted June 19, 2013 I was just reading about how if you use the command "block" to create a block, they are stored with the drawing file; however if you use wblock, you can select where to save your block. Does this sound correct? I've been using the block command and the .dwt file I placed the block in resides off a server that's not at our facility...it's where our web is hosted. do you think this is the issue? should i try to re-do it using wblock? thanks for your help, Proctor Quote
Proctor Posted June 19, 2013 Author Posted June 19, 2013 forgot to say also to remark...I did the -insert command as you suggested and it listed a ton of paths. I can look into finding my block there but wanted to know first the answer to my question above. thanks, Proctor Quote
Proctor Posted June 21, 2013 Author Posted June 21, 2013 When I do wblock command, I can save the block where I want. But, where's the best place to store my blocks? The template files that used these blocks on our web server. Should I place them in this same location? Will this help my issue with it hanging up and not opening - and if so, can you please explain how? thank you again ..... Proctor Quote
ReMark Posted June 21, 2013 Posted June 21, 2013 Yes, I would WBlock out the logo to the same network folder as the templates. Your other blocks can go into a "master" block folder and the path to the folder made known to AutoCAD via Options > Folders > Support File Search Path. Quote
Proctor Posted June 21, 2013 Author Posted June 21, 2013 thank you so much for your help. I'm going to try this and see if it resolves the issue. Proctor Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.