I am using OrientOnCrv command in a macro.
When command asks to select a point as a base point, I want to select it by using macro e.g. SelName.
The point is selected but the the OrientOnCrv does not recognize this selection and still asks to select a point.
Question: how to properly select a point in this mactor?
Not sure you can actually do that in a macro - there is EvaluatePt, which returns the coordinates of a point object but as it returns both world and CPlane coordinates on the command line I don’t think it will work for that. Otherwise I don’t know of a way to get the coordinates without a script.
No, not really. Just appears to work because “table_center” happens to be at 0,0,0. Try moving the whole thing away from 0 and then running the macro. It will ArrrayPolar around 0 still, not table_center. You can see below it is not accepted as the center, so the macro moves on to the next “Enter” and that is accepted as having chosen the CPlane origin as the center.
Object name to select ( Select ): "chair"
1 block instance added to selection.
Center of polar array. Press Enter to use the CPlane origin ( Axis ): _-SelName
Object name to select ( Select ): "table_center"
No objects added to selection.
Center of polar array. Press Enter to use the CPlane origin ( Axis ): _Enter
Center of polar array. Press Enter to use the CPlane origin ( Axis )
Angle to fill or first reference point <360> ( Preview=Yes StepAngle Rotate=Yes ZOffset=0 )
Press Enter to accept. FillAngle = 360 ( Items=3 FillAngle Rotate=Yes ZOffset=0 )