Hi,
I'm using Soildwork 2009 SP4.
I have created a macro that inserts an assembly at 0,0,0. However the origins don't match, Example
My code reads:
boolstatus = Part.AddComponent(ReturnVal, 0, 0, 0)
but the inserted assembily's Origin does not match the Origin of the new asssembly.
It looks like the total size (X,Y,Z) of the inserted assembly is being centred on the origin (i.e. the box around the sub assembly)
Is there a way i can insert an assembly and get the Origins of inserting and new assembly to match?
Regards
Mike
SolidworksApi macros