Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to access BlockInsertion settings using .Net API?

1 REPLY 1
SOLVED
Reply
Message 1 of 2
varshaauti27
191 Views, 1 Reply

How to access BlockInsertion settings using .Net API?

Hi,

 

Is there way to access following block insertion settings using .NET API?

 

varshaauti27_0-1693334992008.png

 

1 REPLY 1
Message 2 of 2
hippe013
in reply to: varshaauti27

You can look into the Autodesk.AutoCAD.Windows.Data.BlockDialogModelInsert class.

 

Using this I was able to specify the insertion point using code. I don't believe that everything is available through this but maybe play with it and see if it provides for what you need. 

 

Dim dlg As New Autodesk.AutoCAD.Windows.Data.BlockDialogModelInsert
dlg.InsertionPoint.X.Value = 8.0
dlg.InsertionPoint.Y.Value = 5.0
dlg.InsertionPoint.Z.Value = 3.0

 

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report