Changing a DC axis
-
So I have created a really complicated DC, several actually.
After I spent MANY hours creating these DC's, I realized that I need to rotate it on the X axis to get them to glue to a vertical surface in the correct way.
What this means is that I need to take every reference to Y and Z and switch them with each other. This is going to be a real pain, and take FOREVER. Does anyone know of a better way to do this? I have been told that a ruby script could be made for this, but I know just about nothing involving Ruby.
I was thinking that there might be a way that I could export the DC attributes to some sort of text editor, where which I could use "Find and Replace" to switch everything en masse, and then copy the attributes back in.
So far, I haven't been able to open a DC's attributes in any sort of external editor...
-
Should be able to do this in-model without too much trouble. I can look at it later today if you can send an example, and if no one else wants to try.
-
Try this DC
http://sketchup.google.com/3dwarehouse/details?mid=36397d927c645b04a12b86efa90a53a4&prevstart=0
The problem with this one is that I wanted to get it to be able to glue to any surface. For that to work right, the front, or face of the door needs to be laying flat, looking up at the sky (or the blue axis)
Right now, its back is facing the positive side of the X axis. When I set a glue plane for it, it is orientated wrong. Basically, I need to rotate it so the front is facing the positive side of the Green axis, and the front is facing the blue axis.
That would require swapping around just about every formula in the DC. I've got this component, and about a dozen others that I need to do this too..
Thanks for taking a look!
-
Sorry Eric, I'm not having any luck - I keep getting errors when swapping attributes even in the simplest case. I've tried swapping them in-model, and also writing to disk, editing, and then re-applying the attributes from the file.
-
Thanks for trying Jim... Just out of curiosity, how were you able to export any attributes from the DC?
Advertisement