Can ATTSYNC command use in ObjectDBX, or similar solution using ObjectDBX ?

Can ATTSYNC command use in ObjectDBX, or similar solution using ObjectDBX ?

Anonymous
Not applicable
972 Views
2 Replies
Message 1 of 3

Can ATTSYNC command use in ObjectDBX, or similar solution using ObjectDBX ?

Anonymous
Not applicable

Hello All,

 

In my current task, I update AutoCAD electrical drawing using an ObjectDBX method but, due to some unknown reason Atttrubute sifted to a new position this problem solve by using ATTSYNC command, I write a function which writes a script which opens every drawing from the project and runs ATTSYNC command for the targeted block. but this is a time-consuming process.

I am looking to run ATTSYNC command in the ObjectDBX method without opening drawing, as far I know we can't run any command in the ObjectDBX method, so can I write some code which can be done a similar action like ATTSYNC command, any help appreciated I found on the web but no luck.

 

 

 

0 Likes
973 Views
2 Replies
Replies (2)
Message 2 of 3

cadffm
Consultant
Consultant

Only add attributes to existing inserts is a problem (with lisp), for this you need a workaround.

 

For all other changes:

Walk through all blockreferences and there attributes,

compare it with the edited blockdefinition,

make your changes..

 

A short answer for a lot of work, i know in detail.

Sebastian

0 Likes
Message 3 of 3

dgorsman
Consultant
Consultant

Changing attribute contents through ObjectDBX has problems when the justification is anything other than the default/left setting.  As far as I know there isn't any way to get around this without the drawing open in the editor.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


0 Likes