Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
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