ZsZs
Computer
- May 8, 2007
- 30
Hi!
I attach a picture. I like selecting the component (with API) - signed with red circle.
Before I use the ModelDocExtension::SelectByID2 method, I need to use the fully qualified name (otherwise not working this method).
The API help wrote:
"The ModelDoc2 object used to call this method must be an open and visible document. For example, you cannot use the ModelDoc2 object returned from an assembly component (Component2::GetModelDoc) unless that SolidWorks component part or subassembly is an open and visible document. In this case, you can select the item using the fully-qualified name (for example, "Plane4@Part1-1@Assem1")."
I how get the instance number of component before selection?
Thanks,
ZsZs.
I attach a picture. I like selecting the component (with API) - signed with red circle.
Before I use the ModelDocExtension::SelectByID2 method, I need to use the fully qualified name (otherwise not working this method).
The API help wrote:
"The ModelDoc2 object used to call this method must be an open and visible document. For example, you cannot use the ModelDoc2 object returned from an assembly component (Component2::GetModelDoc) unless that SolidWorks component part or subassembly is an open and visible document. In this case, you can select the item using the fully-qualified name (for example, "Plane4@Part1-1@Assem1")."
I how get the instance number of component before selection?
Thanks,
ZsZs.