.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Import Layer State file (.las) through ReadDwgFile

1 REPLY 1
SOLVED
Reply
Message 1 of 2
dnl999
443 Views, 1 Reply

Import Layer State file (.las) through ReadDwgFile

I am trying to import a layer state file (.las) using ReadDwgFile, and I need to import it in the model space so that the layer state in all in the xrefs are applied.

But I am getting the error on the line "layStateManager.ImportLayerState(sLASfile)" with 'eUndefinedLineType' probably because the dwgs being opened are in paper space when opened.  How can I import the layerState in model space through ReaddwgFile when the dwg files are last saved in paper space ?

Is ther a way to switch from paper space to model space programatically before ImportLayerState in ReadDwgFile ?

 

Thanks in advance for your reply.

1 REPLY 1
Message 2 of 2
Ajilal.Vijayan
in reply to: dnl999


Is ther a way to switch from paper space to model space programatically before ImportLayerState in ReadDwgFile ?

 


Use

 

database.TileMode = False/True 

to swich between Paperspace and Modelspace

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost