Cuspropmgr points the wrong file

12 views
Skip to first unread message

ronsharo

unread,
Dec 19, 2009, 12:27:48 PM12/19/09
to SolidWorks-API
Hi All,
My Macro opens all the parts in an assemblly.

After opening the first part and activating it I try to check one of
the custom properties and see that it checks the custom property of
the assemblly.

How do I set the Cuspropmgr to point the right file.

Thanks allot,
Ron.

Eduardo

unread,
Dec 21, 2009, 4:24:25 AM12/21/09
to SolidWorks-API
Dim swModelPart as ModelDoc2 = iSwApp.ActiveDoc
Dim custPropMgr as CustomPropertyManager =
swModelPart.ModelExtension.CustomPropertyManager

If the active document is the right one, the custPropMgr will always
be referring to that file.

Reply all
Reply to author
Forward
0 new messages