Jump to content

Modifying block without modifiyng it globaly


Recommended Posts

Posted

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

Posted

The easy way to do it would be to burst it, change it, and remake it into a block.

Posted

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.

Posted

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?

Posted

Yes,once i scale my dynamic block,dynamic properties disapear

Posted

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

Posted

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

Posted

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))

)

Posted

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

Posted

I see, the thing is i need to scale it not in uniform way. ex. x scale 5, y 80

Posted
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.

Posted

FYI: There were a lot of bugs with dynamic blocks in 2008 and 2009 - specifically them losing dynamic properties when being rotated or scaled.

Posted

Right click on the block in the tool palette, go to properties, and check the path. Make sure it matches.

Posted
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

Posted
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.

Posted

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

Posted

thank you all people, I find this site and forum the most beneficial for me out of all internet resources

Posted

That's not fair Lee, you always have the answer. And I'm stealing that program, too!

Posted
That's not fair Lee, you always have the answer. And I'm stealing that program, too!

 

:). :) .:).

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...