Thanks. The question was more that the LoadFromStorageNotify event was being raised by Solidworks before I'd got the reference. It turns out that I need to grab the AssemblyDoc reference in the DocumentLoadNotify event... waiting for FileOpenNotify2 is too late.
J
Anyone know at what point to get a reference to an AssemblyDoc in time to get the LoadFromStorageNotify event? I don't seem to be getting that event when I get the reference during the FileOpenNotify event, nor at any time after?
Thanks,
Jake.
It appears that IsFixed returns true for any components of fixed subassemblies, even with Flexible Solving... ie though Solidworks allows you to move the sub-part, the API tells you that it's fixed! Anyone seen this and knows whether it's a bug and if there's a workaround?
Thanks,
J
Anyone know how, using the API, to replicate the standard red highlighting of components etc when the mouse passes over them in the Design tree? If I could use GetBox within the context of a component part, that might work, but when called on a component it returns an bounding box within the...
When animating parts using PresentationTransforms when the view is split into two or four views, only the currently "active" view shows the animation... Anyone know a way round this so the animation can be viewed from multiple perspectives at the same time?
Thanks.
I'm sure this has been covered here and I'm just not finding the right keywords... Is there a way to make sub-assemblies flexible? ie allow their constituent parts to move, while retaining the mates within them in the context of a larger assembly?
Many thanks.