Hi I have a workstation family instances in my project, that is made of 8 instances of a small tables family and 4 instances of partitions family. I want to extract the subcomponents of the host family instances in my project in their place and with their correct orientations so that i can delete the host families. I want to basically “unnest” the families. My script does place the extracted sub components in place but their orientations are not correct, and the partition locations are also wierdly shifted. Please help.
Instead of working with the instances, I recommend you go back to the family level and extract the coordinate system of each family therein relative to the internal origin, and save a mapping of coordinate system + family type to a JSON file on disc.
From there you can open your project, find the instances of the combined family, extract their coordinate systems, and transform the coordinate systems in the JSON by the instance coordinates. You can then create instances at the correct location, applying the rotation and mirror states as needed to match the coordinate systems.
