How do I check custom properties without opening a part?

118 views
Skip to first unread message

ronsharo

unread,
Dec 30, 2009, 3:19:25 AM12/30/09
to SolidWorks-API
The assembly is open.

Thanks,
Ron.

Eduardo

unread,
Dec 30, 2009, 5:18:08 AM12/30/09
to SolidWorks-API
Dim swSel as SelectionMgr = swModel.SelectionManager
Dim boolstatus as boolean = swModel.Extension.SelectByID2(compName,
"COMPONENT",0, 0, 0, False, 0, Nothing, 0)
Dim swCompPart as Component2 = swSelMgr.GetSelectedObject6(1, -1)
Dim swModelPart as ModelDoc2 = swCompPart.GetModelDoc2

Dim customPropMgr as CustomPropertyManager =
swModelPart.Extension.CustomPropertyManager

Reply all
Reply to author
Forward
0 new messages