Qonfire Posted December 14, 2011 Posted December 14, 2011 Hello Basicly I want to change hatch color of a last block inserted, without changing it globaly. I try to keep away from visuallisp at this stage. thank you Quote
resullins Posted December 14, 2011 Posted December 14, 2011 The easy way to do it would be to burst it, change it, and remake it into a block. Quote
Qonfire Posted December 14, 2011 Author Posted December 14, 2011 I like the "easy" part, the problem i see with this is that i will be using that same block a lot in the same drawing,so i want to have it in original. I might do as you said by naming it differently,but than there will be many blocks with different names. Quote
resullins Posted December 14, 2011 Posted December 14, 2011 Ok... then the best thing to do would be to make the block dynamic and give it all the properties you want. Have you ever worked with dynamic blocks? Quote
Qonfire Posted December 14, 2011 Author Posted December 14, 2011 Yes,once i scale my dynamic block,dynamic properties disapear Quote
Qonfire Posted December 14, 2011 Author Posted December 14, 2011 No problemo.. Amigo, since you are so kind in getting into my problems Please tell me , I have a block from dwg.file in my toolpalette,so when i'm using one lisp that draws (scales,insert,etc) that block, i have to insert that original block in the current drawing.How to make that block available right away,without having it in the current drawing. thanx blockxxx.dwg Quote
resullins Posted December 14, 2011 Posted December 14, 2011 Here, I would do it like this. Try that out and see what happens. Now, as for your tool palette, the reason it's looking for it in the open drawing is because that's where you added it from. Open the folder where the block is located, and literally drag and drop to entire file onto your tool palette. That way, AC will always look in the folder where it's located, not just in the drawing you have open. blockxxx_REZ.dwg Quote
Qonfire Posted December 14, 2011 Author Posted December 14, 2011 Resullins try to scale x, dynamic properties gonna evaporate Bro:) whats wrong with this cond (initget 1 "N E D") (setq b (getkword "Select pipe type? (N/E/D) ")) (cond ((=b "N")(command "._-insert" "NP" "_non" pt1 (distance pt1 pt2) a pause)) ;;;;[color="red"]Space b/w = b[/color] ((=b "E")(command "._-insert" "EP" "_non" pt1 (distance pt1 pt2) a pause)) ((=b "D")(command "._-insert" "DP" "_non" pt1 (distance pt1 pt2) a pause)) ) Quote
resullins Posted December 14, 2011 Posted December 14, 2011 They don't for me. Are you just using the SCALE command? They drawing I've attached has 3 instances of the exact same block, and they're all scaled, and they all still have their dynamic properties. You can also put in a dynamic property that would make it scale, that would get around that problem. BLOCK_REZ.dwg Quote
Qonfire Posted December 14, 2011 Author Posted December 14, 2011 I see, the thing is i need to scale it not in uniform way. ex. x scale 5, y 80 Quote
Qonfire Posted December 14, 2011 Author Posted December 14, 2011 Here, I would do it like this. Try that out and see what happens. Now, as for your tool palette, the reason it's looking for it in the open drawing is because that's where you added it from. Open the folder where the block is located, and literally drag and drop to entire file onto your tool palette. That way, AC will always look in the folder where it's located, not just in the drawing you have open. saved dwg.on desktop,draged and droped into my pallette but still cannt find blocks. Quote
alanjt Posted December 14, 2011 Posted December 14, 2011 FYI: There were a lot of bugs with dynamic blocks in 2008 and 2009 - specifically them losing dynamic properties when being rotated or scaled. Quote
resullins Posted December 14, 2011 Posted December 14, 2011 Right click on the block in the tool palette, go to properties, and check the path. Make sure it matches. Quote
Qonfire Posted December 14, 2011 Author Posted December 14, 2011 saved dwg.on desktop,draged and droped into my pallette but still cannt find blocks. (command "._-insert" "NP" "_non" pt1 (distance pt1 pt2) a pause) if block "np" is on desktop/folder/a.dwg support file search is c:\desktop\folder what would you change to avoid can't find "thing" thing Quote
Qonfire Posted December 14, 2011 Author Posted December 14, 2011 Right click on the block in the tool palette, go to properties, and check the path. Make sure it matches. I did as prescribed....when i draged droped a DWG file into toolpalette ,it became a block containing blocks,search path is correct. Quote
Lee Mac Posted December 15, 2011 Posted December 15, 2011 If I've understood correctly, perhaps this program will help - you can use it to create a copy of your Block Definition, then use the Block Editor to modify the copied Definition without making the change globally. The program will work on dynamic blocks and will retain all properties of the original block. Lee Quote
Qonfire Posted December 15, 2011 Author Posted December 15, 2011 thank you all people, I find this site and forum the most beneficial for me out of all internet resources Quote
resullins Posted December 15, 2011 Posted December 15, 2011 That's not fair Lee, you always have the answer. And I'm stealing that program, too! Quote
Lee Mac Posted December 15, 2011 Posted December 15, 2011 That's not fair Lee, you always have the answer. And I'm stealing that program, too! . .. 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.