How to Import Step (.stp) Files to AutoCAD

<?xml encoding=”UTF-8″>By Madhukar
Moogala

Though there is not a direct API to import a Step file in to AutoCAD drawing unlike Body.AcisIn, we use Editor.Command API to invoke Import command

public void StepIn()
{
Document doc = Application.DocumentManager.MdiActiveDocument;
Editor ed = doc.Editor;
ed.Command(new object[] { "_.IMPORT",
"D:WorkCADFilesScafolf_Bracket_Asy.stp"});
}

Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading