2 Replies Latest reply on Oct 21, 2016 9:31 AM by Félix Caron

    Library Feature Part with Macro

    Félix Caron



      I need to insert a library feature part with the use of a macro. This particular library feature part requires 2 references (both are edges). As far as I know, the only way to insert a library feature part is with the IModelDoc2.InsertLibraryFeature method which has just one parameter (the file path of the feature). How can I indicate what my references are? I have tried manually selecting both edges before running the macro as well as selecting both edges inside the macro but that fails to work.


      The InsertLibraryFeature method seems to accept the first edge as the first reference but will entirely ignore the second edge. The feature is then created with an error and requires the user to indicate the second reference.


      Any ideas? Thank you