Hi all - Hope everyone is enjoying the Northern Hemisphere summer!
In v7, I had written a helper routine that took three points that defines two intersecting lines and created a fillet between them using the Constraint tools. This was ported over to V8i relatively untouched.
The v7/v8i Constraint system has been deprecated and I'm assuming that it's been replaced with Constraint2D and Constraint3D things. Not sure I actually NEED constraints any more, as there's several posts by Jon Summers about using different things to fillet based on lines. The old code takes three points and a radius as the input and returns an arc element that represents the fillet.
The code I'm writing has a planar n-sided non-regular shape (honestly? non-regular triangular or quadrilateral, no more) and needs to fillet all the corners. I think Jon's original post about CurveVector.CloneWithFillets and Brien Bastings response will be the direction that I head. Basically, it's creating turret-punched cutouts in plate that need a particular radius fillet to prevent tear-out, and I can either calculate all the fillets or create a closed shape and use something like the direction posted by Brien and Jon's code on LASolutions site.
These are C# though, and I'm having some agita worried that it won't port well.
So a lot of talky-talky and not a question yet. Here goes:
Can someone suggest sample CONNECT C++ code that uses the new Constraint API? I may have other areas that are using constraints, so I'd like to have that in my back pocket, just in case.
Thanks,
G
Oh boy. I think I jumped the gun with this question.
mdlElmdescr_fillet will probably do everything I need to do and I can likely keep the code as is, just removing the constraint bits. I'd still like an example of the Constraint2d and Constraint3d functionality in C++. Sorry for spamming a question.
Gary Shay said:mdlElmdescr_fillet will probably do everything I need to do
Here's a .NET solution. You can probably read between the lines to arrive at an equivalent C++ implementation.
Regards, Jon Summers LA Solutions