Community
Hi,
When I try use AlternateBasePoint in my class MyGripOverrule : GripOverrule {...,
public override void GetGripPoints(...){ ... grips.Add(new MyGrip(){ GripPoint = new Point3d(5,0,0), AlternateBasePoint = new Point3d(10,0,0), } ...
I get always AlternateBasePoint = Point3d(0,0,0)? Why?
Thanks!
Just guessing - you have an extra comma after AlternateBasePoint = new Point3d(10,0,0),
I'll bet that C# interprets that as a missing parameter
This is 2022, and 7 years later I still have the same problem, this is the code:
CustomGripData grip; //extends GripData
grip = new CustomGripData();
grip.AlternateBasePoint = new Point3d(5.0, 0.0, 0.0);
// at this point if you read grip.AlternateBasePoint it says {(2.8567367949313E-312,6.9519327022869E-310,1.11594791398818E-311)}