Message 1 of 5
Forced update of MDT assembly constraints?

Not applicable
03-02-2001
03:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am using the follow lines of code to update the 3D assembly constraints in
MDT:
Dim mapp As McadApplication
Set mapp =
ThisDrawing.Application.GetInterfaceObject("Mcad.Application")
mapp.ActiveDocument.AssemblyMgr.Update
However, there are two problems:
1) If there are any externally references parts or assemblies, I get a
"Run-time error '-2147196429': The component definition is external." Any
way to update assembly constaints that contain xrefs?
2) The update doesn't occur until the VBA program exits. I really want to
force the update to occur immediately.
Thanks,
Benjamin
MDT:
Dim mapp As McadApplication
Set mapp =
ThisDrawing.Application.GetInterfaceObject("Mcad.Application")
mapp.ActiveDocument.AssemblyMgr.Update
However, there are two problems:
1) If there are any externally references parts or assemblies, I get a
"Run-time error '-2147196429': The component definition is external." Any
way to update assembly constaints that contain xrefs?
2) The update doesn't occur until the VBA program exits. I really want to
force the update to occur immediately.
Thanks,
Benjamin