Dynamic Blocks in DXF

Anonymous

Dynamic Blocks in DXF

Anonymous
Not applicable

How does the DXF specification handle dynamic blocks? Where is the reference defined? How does the DXF file indicate that a block is dynamic?

0 Likes
Reply
Accepted solutions (1)
1,906 Views
4 Replies
Replies (4)

pendean
Community Legend
Community Legend
1) why do you need a DXF file of a dynamic block?
2) what program is going to open the DXF file?
0 Likes

Anonymous
Not applicable

1) I'm doing some electronics design in AutoCAD, and storing components in DXF looks more stable.

2) Reading would be done either in AutoCAD, or using EZDXF in Python, depending on how easy it is to write Python scripts interfacing with AutoCAD.

0 Likes

cadffm
Consultant
Consultant
Accepted solution

>"Where is the reference defined?"

Like all other Blockreferences for Blocks or Xrefs too.

 

It's more difficult as you think.

ONE BLOCK looks every time the same way because there are one set of objects,

you can not have one Reference to BlockX with a line stretched longer than in another Reference for this BlockX, OH.

 

Behind the scenes of

DynmaicBlocks are more a program than a special Block.

 

Block with a stretch parameter/action:

Insert BlockX, you have a Blockreference of BlockX

Test it with command LIST

Use the dynamic stretch feature... ACAD will copy BlockX and create a Block with an anonymous Blockname "*Unnn",

the Blockreference will references this Block now.

Test it with command LIST

 

Oh, I am wrong?

No! The "effectivename" is called Blockname in the PropertiesPalette and also in command LIST,

the "anonymous Name" is the real Blockname.

 

And if you like to the the whole terror:

Test it with an "empty" DXF,

create one Block with one single line,

create a Blockreference

saveas NORMAL.dxf

Edit the Block, add a linear/stretch parameter/action.

saveas DYN-Standard.dxf

Now, stretch the Block by using the dyn. paramter.

saveas DYN-Edited.dxf

 

Compare the DXF files and you can see where the data is.

Sorry, there is no "How to" in the DXF Reference, that is your challange to learn about theses things.

 

(too much things for a short forum help)

Sebastian

Anonymous
Not applicable

Thanks for this investigation. It makes sense that this wouldn't be easy, given that the documentation for the blocks is non-trivial.

0 Likes