Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Hi @andrew_canfield.  The good news is that there are methods in the Inventor API for doing this.  The AutoCADBlock object has two methods, one called "GetPromptTextValues", and one called "SetPromptTextValues".  These are the things that are called the 'Attributes' of the block in AutoCAD.  There are two variables involved in those two methods, and both variables are an array of String (String()).  On the Get side, you need to create the two variables of that type ahead of time, then supply them as input variables to the method, then run that method, then it fills in those two variables with the names and values.  On the Set side, you create these two variables ahead of time, fill them yourself, then put them in as input variables in the corresponding method and run it, and it puts those values in place for the names given.  If you still need more help writing the code for this, just let us know.

 

If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS) :thumbs_up:.

If you want and have time, I would appreciate your Vote(s) for My IDEAS :light_bulb: or you can Explore My CONTRIBUTIONS

Wesley Crihfield

EESignature

(Not an Autodesk Employee)