Insert - Explode text and dim styles

Insert - Explode text and dim styles

dbaldzhiev
Contributor Contributor
650 Views
4 Replies
Message 1 of 5

Insert - Explode text and dim styles

dbaldzhiev
Contributor
Contributor

I have some files exported from Revit. I have Xref-ed them to a new acad file. I want to Bind (Insert) and explode them with an accoreconsole script.

So far so good.

bindtype
1
xref bind *
xplode
all

g

purge
all
*
n
save
Merge.dwg

I am having troubles because the text styles in the dimension styles get messed up for some reason. What I have surmised is that the conflict comes from text styles having identical names. If I use bind which will prefix everything the explode works great.

Is there any other way than going  with bind-bind

0 Likes
Accepted solutions (1)
651 Views
4 Replies
Replies (4)
Message 2 of 5

user181
Mentor
Mentor

Hi @dbaldzhiev,  If you know the text style name used in the dimensions then you can change the text height of that style to 0 in the drawing you are binding it into and then do the explode and change the text style height back again. 

EESignature


0 Likes
Message 3 of 5

john.vellek
Alumni
Alumni

HI @dbaldzhiev,

Instead of an Xref with bind, have you considered using a -insert with *<blockname>?  I haven't tried your process before so I don't know if this will improve the behavior.  Are you able to share some sample files on a post so I can try this too?

 

 

Please select the Accept as Solution button if my post solves your issue or answers your question.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
0 Likes
Message 4 of 5

john.vellek
Alumni
Alumni

Hi @dbaldzhiev,

 

I am coming back to your thread to see if the issue or question you posed has been resolved.  If so, please mark the post or posts as Solution(s) to help others find the answer quickly. If your issue persists, please give me a bit more detail on this issue so we can continue to work towards getting this solved.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
0 Likes
Message 5 of 5

dbaldzhiev
Contributor
Contributor
Accepted solution

The solution was to find a way to bind-bind dim styles and text styles and to bind-insert everything else (mainly concerned with Layer names). The solution was to use xbind for styles before I bind-insert everything. The code that works for me is as follows:

visretain 0
xbind d *
xbind s *
bindtype 1
xref bind *
xplode all

g

purge
all
*
n
audit y
save
Merge.dwg

I thought that using xbind it will bind things twice with and without the $0$ prefixes. The xbind;bind-insert behavior is quite odd in my opinion. However, turned out to be quite useful so I am not complaining.

 

 

The problems comes form the fact that Revit exports text styles sequentially - Arial 0; Arial 1; Arial 2.... If one exports a set of drawings Arial 1 may or may not be with the same as Arial 1 in the other drawing. When bind-insert these conflicts get resolved by picking the settings for Arial 1 from the first inserted drawing - therefore messing up/or not every insert after that. Due to the fact that "sometimes works-sometimes doesn't" this was a hell to troubleshoot. The only sensible solution in my opinion is the one I have posted which sets up unique text and dim styles for each of the inserted drawings.

0 Likes