Thank You for Reply.
I need simple example to "select sketch using mouse" in part extrude. or "select template using mouse"
please see the attachment.
... I took a quick look but couldn't figure out which filter to apply to be able to select a sketch.
AFAIK, there is no direct filter to locate sketches. I typically use the
seLocateProfile seLocateGeometry2d filter which allows me to pick 2d geometry entities, from where I can get to its parent profile and its parent sketch through the Parent properties.
Thank you for Reply.
Can you please add some code. so i will be very helpful for all.
Thanks in advance,
please check out the MouseEvents Sample on Github.
If you are going to select a sketch in ASSEMBLY, then it will be much easier than in PART, as you can use the seLocateRelation2d filter to highlight the entire sketch and not just the 2d entities on it.
you may also look for the Solid Edge Command Macro wizard from Siemens.
In Visual Studio under Tools -> Extensions and Updates..., search Online under the Visual Studio Gallery for "Solid Edge Command Macro" and install it.
Based on this wizard, I created the attached VB.NET command to select a Sketch in either ASM or PART.
You should then check the CmdActivate() and MouseClick1() methods.