General

General

How can I get the part id for a part that is created with a Python script?

    • FAQFAQ
      Participant

      The following will return the last part id. So if this command is issued immediately after the part is created, you will be able to retrieve the part id for that part. lastpartid = max(ensight.objs.core.PARTS).PARTNUMBER