Forcing DWG Import Scale to Desired Value
Forcing DWG Import Scale to Desired Value
(OP)
Howdie all.
Was wondering if there was a way in ProE to force the Scale Rotate dialog box for .dwg import, to default to a static value that remains the same for every import into Sketcher? I typically import a lot of .dwg files for sections, and it is such a pain having to re-input the same scale every time. The best I can do now is create an empty folder on my desktop with the name "_ .0393701", so that I can quickly grab that scale value by copying the folder name to the clipboard. That way I don't have to remember that value every time I open a sketcher session requiring .dwg imports. But it still requires that workaround every time I import stuff, especially if I've recently used the clipboard for something else, and have to go BACK to that folder on the desktop to recopy the value to the clipboard. Can't find anything in the ProE options that might make this possible.
Thanks again as always!
Tom Reddie
Was wondering if there was a way in ProE to force the Scale Rotate dialog box for .dwg import, to default to a static value that remains the same for every import into Sketcher? I typically import a lot of .dwg files for sections, and it is such a pain having to re-input the same scale every time. The best I can do now is create an empty folder on my desktop with the name "_ .0393701", so that I can quickly grab that scale value by copying the folder name to the clipboard. That way I don't have to remember that value every time I open a sketcher session requiring .dwg imports. But it still requires that workaround every time I import stuff, especially if I've recently used the clipboard for something else, and have to go BACK to that folder on the desktop to recopy the value to the clipboard. Can't find anything in the ProE options that might make this possible.
Thanks again as always!
Tom Reddie





RE: Forcing DWG Import Scale to Desired Value
mapkey sr @MAPKEY_LABELscale_rotate;~ FocusIn `scalerotate` `ScaleInput`;\
mapkey(continued) ~ Update `scalerotate` `ScaleInput` `.0393701`;\
mapkey(continued) ~ FocusIn `scalerotate` `RotateInput`;\
mapkey(continued) ~ Activate `scalerotate` `RotateInput` `0`;
Note, when you select section data from file, the focus is set to the scale box so before you can enact the mapkey, you'll need to click on the graphics window. Then you can type 'sr'...
<tg>
RE: Forcing DWG Import Scale to Desired Value
Thanks for resetting my brain, telecomguy.
treddie
RE: Forcing DWG Import Scale to Desired Value
treddie
RE: Forcing DWG Import Scale to Desired Value
RE: Forcing DWG Import Scale to Desired Value
After you select the dwg file to use as a sketch, the sketch displays and the "Scale Rotate" dialog box pops up.
Then go to Utilities; Mapkeys
In the Mapkeys dialog, select New
Set the Key Sequence to be 'sr' or whatever you want to call it
Give the Mapkey a name so you can quickly identify it in you configuration file
Click Record (now you need to not make any stray mouse clicks or else you'll clutter up your mapkey code)
Select the Scale field and give it your scale factor
Select the Rotate field and give it your rotation
Hit 'enter' so it will apply the changes (don't place the sketch nor click the check mark)
Now press Stop and OK in the Record Mapkey dialog box.
In the Mapkeys dialog, select Save and save the changes to your Config.pro file (or wherever you store your mapkeys).
Now if you go look at the contents of your config.pro, you should see something along the lines of the mapkey I posted earlier.
Good luck,
<tg>
RE: Forcing DWG Import Scale to Desired Value
Anyhoo...thanks again telecomguy!
treddie