Cut with Void When Loaded Parameter Family Document.

Cut with Void When Loaded Parameter Family Document.

mr.engineer.aec
Advocate Advocate
1,114 Views
2 Replies
Message 1 of 3

Cut with Void When Loaded Parameter Family Document.

mr.engineer.aec
Advocate
Advocate

 Hi All,

 

I'm trying to set value for Cut with Void When Loaded Parameter in Family Document but familyParameter return null;
I checked newFamilyDocument != null.
Whether I did it right or not ? And how to fix it. 
Many thanks !

FamilyParameter familyParameter = newFamilyDocument.FamilyManager.get_Parameter(BuiltInParameter.FAMILY_ALLOW_CUT_WITH_VOIDS); //familyParameter return null when debug.

newFamilyDocument.FamilyManager.Set(familyParameter, 1);

 

0 Likes
Accepted solutions (1)
1,115 Views
2 Replies
Replies (2)
Message 2 of 3

naveen.kumar.t
Autodesk Support
Autodesk Support
Accepted solution

Hi @mr.engineer.aec ,

Try using this below code

Parameter p =doc.OwnerFamily.get_Parameter(BuiltInParameter.FAMILY_ALLOW_CUT_WITH_VOIDS);
p.Set(1);    

 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

Message 3 of 3

mr.engineer.aec
Advocate
Advocate

 Many thanks @naveen.kumar.t 

0 Likes