Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

how to select entity in drawing

softstone

New member
hi,all,


How to select entity at specified location in drawing? For example, how to select line , arc or circle of a view in drawing.


Thanks,


Regards
 
softstone,


Look up the function ProSelect. The best place is the User's Guide->The Selection Object->Interactive Selection. You can tell the ProSelection function which types of objects you want to be selectable. For instance you can tell it to only select edges. Hope this helps.





Patrick
 
hi


if youworking withWF2 you can use SELECTION FILTER which is located at the bottom of main window in right corner
 
Hi all :


Thanks very much for your advance.


But I need is selecting object programly in some area of drawing , not Interactive Selection.


Thanks


John Stone
 
John,


You are going to have to be more specific. What exactly are you trying to do? Do you start with an X,Y location on a drawing and you want to select whatever it is at that location?





Patrick
 
Yes,


You need to look at the documentation under User's Guide->The Selection Object->The Selection Object->Building a ProSelection Object. This documentation will teach you how to build a ProSelection object. As one of the inputs you can give it a 3D point (ProSelectionPoint3dSet). In your case you would set Z to 0. Then you can get a handle to the model item (ProSelectionModelitemGet) and get the type of object that was selected (modelItem.type). Then you can act appropriately for whatever was selected. Hope this helps.





Patrick
 

Sponsor

Articles From 3DCAD World

Back
Top