API Get distance between faces
API Get distance between faces
(OP)
Hello,
I'm attempting to write a macro that would apply a distance mate. I want it to default to the current distance between faces. The problem is I don't know how to get that distance. I've only found the ModelDoc::ToolsDistance method, which doesn't seem to return a value. The other option is the swModel.ClosestDistance which isn't always the correct value.
Can anyone offer some guidance? I'm pretty new to this stuff, so I'm not real creative, but a little direction would go a long way.
Thanks,
I'm attempting to write a macro that would apply a distance mate. I want it to default to the current distance between faces. The problem is I don't know how to get that distance. I've only found the ModelDoc::ToolsDistance method, which doesn't seem to return a value. The other option is the swModel.ClosestDistance which isn't always the correct value.
Can anyone offer some guidance? I'm pretty new to this stuff, so I'm not real creative, but a little direction would go a long way.
Thanks,
Craig Sink
Mechanical Engineer
Force Design, Inc.
www.forcedesign.biz






RE: API Get distance between faces
Maybe the API will do the same if you select the faces first?
SW07-SP3.1
SW06-SP5.1
RE: API Get distance between faces
Thanks,
Craig Sink
Mechanical Engineer
Force Design, Inc.
www.forcedesign.biz