Macro to pre-set text , arrow, and dimension options proportional to text size.

Started by Rob S, February 05, 2008, 11:19:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dempsey

Rob S, dss05.d3m (my version that is) runs fine in V18.3.

gellfex, what confuses me is that you said "... it won't let me set a point, 2 right clicks and the macro closes...". I get the impression that you are not even in the macro.

This should be your sequence (just in case I have attached my dss05.d3m file:

  • Start DesignCAD and open a drawing, or open a new drawing (File--> New)
  • Enter % on the keyboard. A file selection menu should appear. Find the dss05.d3m file, click on it and click on OPEN.
  • The dss05.d3m should run and you get the input box that looks like "DCAD Version is 18.3.000, Enter desired text size, ..." and type for example 2 and ENTER.
  • Next you should get another input box "Dimension Format - 0=1.500, 1= 1 1/2, ...", type for example 1 and ENTER.
  • After a few seconds depending on how fast your PC is you get a message box "Finished - Press Enter" click on OK or simply do ENTER.

Does the above work for you now?
Dempsey

Rob S

User since forever

gellfex

I guess you're right it's never loading, I never get the 3rd dialog box. like I said, in v5 I just get a error noise of some kind, v4 it just never comes up either.

Quote from: Dempsey on May 18, 2011, 06:27:10 PM
Rob S, dss05.d3m (my version that is) runs fine in V18.3.

gellfex, what confuses me is that you said "... it won't let me set a point, 2 right clicks and the macro closes...". I get the impression that you are not even in the macro.

This should be your sequence (just in case I have attached my dss05.d3m file:

  • Start DesignCAD and open a drawing, or open a new drawing (File--> New)
  • Enter % on the keyboard. A file selection menu should appear. Find the dss05.d3m file, click on it and click on OPEN.
  • The dss05.d3m should run and you get the input box that looks like "DCAD Version is 18.3.000, Enter desired text size, ..." and type for example 2 and ENTER.
  • Next you should get another input box "Dimension Format - 0=1.500, 1= 1 1/2, ...", type for example 1 and ENTER.
  • After a few seconds depending on how fast your PC is you get a message box "Finished - Press Enter" click on OK or simply do ENTER.

Does the above work for you now?


Dempsey

gellfex,

It is possible that dss05/4.d3m did run, but did not show the confirmation at the end (perhaps it was commented out or something).

Did you download my version of the dss05.d3m and used that? If not then do so as it is the latest version.

After running it check Option--> Option--> Dimension and check if the text size and format is what you set it to in the dialogue (say 2 and 1 1/2). The arrow size should be 0.8 times the text size thus 1.6.

What version of DesignCAD are you using? (Help-->About DesignCAD)
What operation system are you running (XP, Vista, Windows 7; 32 or 64 bit)
Dempsey

DrollTroll

DT's modified version attached -- dss07.d3m

Mostly cleaned up some comparison code -- haven't checked it for full functionality, but at least it runs to completion in DC18.1.

*Edit* I thought some of the string comparisons looked a bit iffy, so I generated my own decimal version number and used that for comparison. Seems to have done the trick.
25 years with DesignCAD

Rob S

Thanks, DT

Seems you left debug mode turned on - for anyone not knowing how, just open the macro ina text editor like notepad and in the 4th line - change Sys 800 back to 0

Sys(800) = 0

For those preferring 3 decimal places of precision - in the 34th line change 6 to 3

Prcn=3       ' precision *** PACA
User since forever

DrollTroll

Whoops, you're right Rob. Bad Troll!

Attached version turns off the debugger window.
25 years with DesignCAD

gellfex

Okay, with v7 I've seen the "Finished - Press Enter" message. Do I understand this correctly that the macro closes at the end of the dialog, and to change the text size I run the macro again? For some reason I thought you could just use the dim dialog and the macro would resize everything at that point.

Well, it's a vast improvement, to step back to the way things used to be!  (been a user since DOS days)

Thanks.