Dimscale of unopened file?

Dimscale of unopened file?

Anonymous
Not applicable
244 Views
1 Reply
Message 1 of 2

Dimscale of unopened file?

Anonymous
Not applicable
Is it possible to get variable (or any other information) from an unopened file through VBA? I'm looking to automate the insertion of 20 or so files as xrefs. The scale of the insertions would be 1/dimscale of each of the drawings. Can I find out any information about the drawing without opening it?

The format "dimsc= ThisDrawing.GetVariable("DIMSCALE")" works for an opened, active, drawing. I have the path and file name of the 20 files. Can I do this?

If not, is it possible to turn off screen updating, so the user doesn't see 20 files open and close?

Thanks in advance,
Aaron
0 Likes
245 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
If you know the name of the Dimstyle that should be the Style with the
drawing's scale, you could setup a dummy style in the open drawing and use
ObjectDbx/Copyfrom to copy that style to the current drawing's dummy style
and extract the dimscale from it. The actual time it would take to do this
is minmal compared to actaully opening a drawing in the editor.

I'm unaware of any method to use Getvar on unopened drawings.

Jeff

wrote in message news:4872708@discussion.autodesk.com...
Is it possible to get variable (or any other information) from an unopened
file through VBA? I'm looking to automate the insertion of 20 or so files
as xrefs. The scale of the insertions would be 1/dimscale of each of the
drawings. Can I find out any information about the drawing without opening
it?

The format "dimsc= ThisDrawing.GetVariable("DIMSCALE")" works for an opened,
active, drawing. I have the path and file name of the 20 files. Can I do
this?

If not, is it possible to turn off screen updating, so the user doesn't see
20 files open and close?

Thanks in advance,
Aaron
0 Likes