Dynamic Block Paratermets and actions copying to another?

Dynamic Block Paratermets and actions copying to another?

Sujan.Maharjan
Collaborator Collaborator
2,353 Views
8 Replies
Message 1 of 9

Dynamic Block Paratermets and actions copying to another?

Sujan.Maharjan
Collaborator
Collaborator

Hi,

Is there any way i can copy certain chosen visibility mode's content including parameters and actions to another dynamic block?


"Revit Lies in the tension between what we want to do and what can be done!"
2,354 Views
8 Replies
Replies (8)
Message 2 of 9

john.uhden
Mentor
Mentor

Hello, Sujan.  Welcome to this forum.

 

I feel bad that no one has answered your question in such a long time.

 

I know nothing about dynamic blocks (still running only ACAD 2002), but I would guess there are certain properties that you could copy from one block definition to another.  if you could get a handle on Visual Lisp and objects and properties and methods, then there may be a way to do what you want.

 

Do you have any experience with Visual Lisp?  How about regular AutoLisp?  We can help you learn.

John F. Uhden

0 Likes
Message 3 of 9

Sujan.Maharjan
Collaborator
Collaborator

Hi, 

Thanks for replying. I have basic knowledge of using autolisp . While searching in internet I found this link below but don't know how to use it. I assumed that they can help me what i'm trying to do. I made autolisp routines by copying texts from the website but non of them are working for me or I used it incorrectly . May be you could help me with this

 http://www.lee-mac.com/dynamicblockfunctions.html


"Revit Lies in the tension between what we want to do and what can be done!"
0 Likes
Message 4 of 9

john.uhden
Mentor
Mentor

Lee Mac has provided some very informative Visual Lisp tools for any of us to use.

You, as I, would have to study them to learn how ro "Get" and "Put" the Visual Lisp values.

Once you get the hang of it, it becomes a lot less overwhelming, actually even fun.

 

Whatever vla-object you can attach to a symbol name, always "dump" it to learn its properties.

By "dump" I mean to (vlax-dump-object object).

I got so tired of typing "vlax-dump-object" that I (setq dump vlax-dump-object) in my own acaddoc.lsp.

That way I could type just (dump object).

 

You will have to leave me behind and hope to hook up with @dbroad and/or @ВeekeeCZ to raise your confidence and skill level.

There are really plenty of smart, knowledgeable, and willing people here who i trust will jump in to guide you along.

 

Best of luck! - John

John F. Uhden

Message 5 of 9

hgasty1001
Advisor
Advisor

Hi,

 

I don't know if the term "copy" means to copy the values or copy the definitions of the parameters, if it's the values, you can use the link to Lee-Mac utils provided by "Sujan_", if it's the parameter definitions, it's a lot more complicated, see this link to the deep work of Andrei V. Lazebny (RIP) on the matter : Dynamic Blocks

 

Gaston Nunez

 

0 Likes
Message 6 of 9

Sujan.Maharjan
Collaborator
Collaborator

My intention is to combine separately made dynamic blocks into different visibility modes. Autocad do not give permission to copy parameters and actions . I have to reconstruct everything again 


"Revit Lies in the tension between what we want to do and what can be done!"
0 Likes
Message 7 of 9

pallen9JA6T
Enthusiast
Enthusiast

Did you ever figure this out? I'm trying to do the same thing. I really don't want to have to recreate all the actions again.

Message 8 of 9

cadffm
Consultant
Consultant

There is nothing to "figuring out", it doesn't work.
If you have 2 Blocks, one is finished and perfect, the other not.

Qestions: What is faster?
a) Starting with block1 as base and editing them to block2?
    Then copy block1 as block2 and start your work.

OR

b) Starting with block2 as base and editing them to block1?
    Then copy block1 as block2 and start your work.

In BEdit you can use command BSAVEAS for renamed copies of a block.

Sebastian

0 Likes
Message 9 of 9

Anonymous
Not applicable

It's really unfortunate that this apparently cannot be done. This would save hours if not a few days of my time. I cannot see why you can't copy them as long as you copy everything they affect.