GetPoint AddConstructionPoints


#1

Normally AddConsturctionPoints works. But when the flag Project is on. All the construction Points’s z -Values are zeroed. How can I prevent this. Thanks.


(Dale Fugier) #2

The only way to prevent this is to turn off osnap projection (temporarily):

bool bOsnapProjectionEnabled = RhinoApp().AppSettings().ProjectOsnaps();
gp.GetPoint();
RhinoApp().AppSettings().SetProjectOsnaps( bOsnapProjectionEnabled );

#3

Thanks Dale looks promising. I have problem though, translating your Code to RhinoCommon. Can somebody help?


#4

The flag is found under
Rhino.ApplicationSettings.ModelAidSettings.ProjectSnapToCPlane


(Dale Fugier) #5
bool bOsnapProjectionEnabled = Rhino.ApplicationSettings.ModelAidSettings.ProjectSnapToCPlane;
GetPoint gp = new GetPoint();
gp.Get();
Rhino.ApplicationSettings.ModelAidSettings.ProjectSnapToCPlane = bOsnapProjectionEnabled;