cwsink
Automotive
- Mar 22, 2006
- 163
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,
Craig Sink
Mechanical Engineer
Force Design, Inc.
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.