[AUTOCAD MEP] is there a way to use attributes since property set definitions?

[AUTOCAD MEP] is there a way to use attributes since property set definitions?

jtm2020hyo
Collaborator Collaborator
461 Views
2 Replies
Message 1 of 3

[AUTOCAD MEP] is there a way to use attributes since property set definitions?

jtm2020hyo
Collaborator
Collaborator

Hello everyone.

 

I am learning AutoCAD MEP and I noticed that Attributes Definitions Tags, Values, and Prompts, can not be used since Property set definitions, merge Block Attributes with Property Set Definitions might be awesome because Block Attribute support Fields, ATTOUT, and ATTIN , and Property Set Definitions support formulas and Schedules.

 

is there a way to use blocks attributes definitions tag, values, prompts since property set definitions and use their formulas using .NET?

 

... Or similar?

 

 

 

 

0 Likes
462 Views
2 Replies
Replies (2)
Message 2 of 3

norman.yuan
Mentor
Mentor

Your question is not very clear to me. But if you mean using data attached to block reference from PropertySet to update attribute value, or the other way around (as long as the PropertySet field is not "by formula" programmatically, then yes, you can do it with AutoCAD .NET API and PropertySetData .NET API, which is not available for plain AutoCAD, but only a few AutoCAD verticals (Architecture, MEP, Civil3D). You need to set reference to 

 

"C:\Program Files\Autodesk\AutoCAD 20xx\ACA\AecPropDataMgd.dll"

 

for manipulate PropertySet data.

Norman Yuan

Drive CAD With Code

EESignature

Message 3 of 3

jtm2020hyo
Collaborator
Collaborator

 


@norman.yuan wrote:

Your question is not very clear to me. But if you mean using data attached to block reference from PropertySet to update attribute value, or the other way around (as long as the PropertySet field is not "by formula" programmatically, then yes, you can do it with AutoCAD .NET API and PropertySetData .NET API, which is not available for plain AutoCAD, but only a few AutoCAD verticals (Architecture, MEP, Civil3D). You need to set reference to 

 

"C:\Program Files\Autodesk\AutoCAD 20xx\ACA\AecPropDataMgd.dll"

 

for manipulate PropertySet data.


if for AutoCAD vanilla exists ATTRIBUTE DEFINITIONS and command TCOUNT command, (as you know, that can renumber multiple attributes with fence and order x-axis and y-axis), I am searching something similar for Property Set Definitions and  PropertyRenumberData command, or if possible, just renumber all selected in the same order since a selected number or letter.

 

is there any code you can share related to this case? for study the code because I am new here.

 


@norman.yuan wrote:
....

"C:\Program Files\Autodesk\AutoCAD 20xx\ACA\AecPropDataMgd.dll"

 

for manipulate PropertySet data.


 

Exist a way to manipulate this file "C:\Program Files\Autodesk\AutoCAD 20xx\ACA\AecPropDataMgd.dll" since Dynamo Studio or Dynamo RunTime?

 

 

 

0 Likes