PipeCAD
PipeCAD copied to clipboard
Enhancement of mechanism of P-Point selection
Hello Shing,
Please, can you enhance mechanism of selection of P-Points while measuring distance between 2 elements which have P-Points (piping components and primitives). Currently, it is quite difficult to get correct selection of start and end P-Points.
https://user-images.githubusercontent.com/12736532/177100463-3cae634c-48a3-489b-916b-c38b625d7e97.mp4
I think it could be different options to define mode of selections. Currently, it could be mode for selecting only P-points or P-lines or screen point (it's already released).
Form for setup mode of selection can be called by dedicated icons from Status Bar (like in E3D)
Form itself can contain 3 check boxes for now: P-Point, P-Line( any pline w/out posibility to filter for current moment) or Screen Point.
I can try to develop such form, but I will only need name of core methods which I can use for setup mode of selection. It will allow saving your time for another tasks.
OK. Now there is a function PipeCad.PickPoint(int theMode), set theMode=1 can pick the vertex of model, this will be better. I will consider to add mode to pick P-Point.
The Object Snapping Settings in E3D:
Snap to element points:
Snap to graphics points:
Firstly try to implement some simple snap function, such as Midpoint, Centre point.
Pick P-Point of cylinder:
Pick P-Point of box:
Pick P-Point of nozzle:
Pick P-Point of piping component:
Pick Point demo:
Use PipeCad.SnapOptions to set one or multi snap options:
Set snap options, default is snap end and ppoint:
Snap center of circle/arc:
Snap middle point of segment:
Query position and distance to use the same snap point options: