Ask questions about DataCAD 20, DataCAD LT 20, or previous versions here.
#61406 by wvar
Fri Aug 30, 2013 4:45 pm
Is there a way to set alias's for Reference Point and Ortho on/off
#61408 by Roger D
Fri Aug 30, 2013 5:20 pm
Looking in the Extended Character Codes
https://www.datacad.com/ddn/extended_cha ... codes.html

0096 ` Reference Point
0111 o Ortho Mode On/Off
1050# Orthomode On
1051# Orthomode Off



Another resource is the Built In Function Numbers
https://www.datacad.com/ddn/built-in_fun ... mbers.html
#61409 by wvar
Fri Aug 30, 2013 8:01 pm
Thanks for your help Roger. It is very much appreciated.
I tried to create an Alias to toggle ortho mode on/off using Extended Character Codes. However it does not work. I have attached a screen clip that shows the command that I created. What do you think I have done wrong?
Attachments
2013-08-31_105648.jpg
First attempt at a command line alias using Extendedc Character Codes.
2013-08-31_105648.jpg (38.48 KiB) Viewed 17143 times
#61410 by joshhuggins
Fri Aug 30, 2013 8:10 pm
It's the little o

copy this below

^o^
#61411 by Roger D
Fri Aug 30, 2013 8:18 pm
or with many extendded codes, they are entered using the numkeypad, holding down the alt key, then all 4 digits.
#61412 by wvar
Fri Aug 30, 2013 11:04 pm
Thanks for both of your replies but I do not understand :?
#61413 by wvar
Sat Aug 31, 2013 12:17 am
I am now totaly bamboozaled. Apart from the manual is there a tutorial on setting up Alias's. I can follow the system when using the menu on the side of the monitor. However, I am lost when using extended character codes. :? :?
#61414 by wvar
Sat Aug 31, 2013 1:12 am
Finally!

I managed to get it to work by going through some previous posts.

The revised code that works is as follows:

2013-08-31_154750.jpg
2013-08-31_154750.jpg (28.3 KiB) Viewed 17115 times


For future reference - The following points need to be remembered:
1. To create an Alias, press Ctrl + Spacebar. Then select Settings on the top LH side of the menu. Make entries for Alias, Comment and Sequence. Save the Alias.
2. When entering the Sequence code, start and end the code with an ^.
3. Press Alt + code when entering an Extended Character from Datacads Extended Character list. The numbers are entered using the numeric keypad. The Alt key is used only on codes up to 0255 (those without the # sign at the end), after that you enter the 0000# without the Alt key.
4. Datacad's Extended Character codes can be found at
https://www.datacad.com/ddn/extended_cha ... codes.html
5. As an example the Toggle ortho on/off extended character code is entered by ^Alt + 0111^. The Alt+0111 displays as o.
6. To invoke an Alias press Ctrl + Spacebar. The Enter Alias browse box appears. You are prompted to enter the Alias or select one from the list.

Thanks all for your recent and previous posts.

The reason why I am setting up Aliases is that I find that my laptop hessites when I issue a command. This problem does not occur in other non CAD and CAD software. The delay occurs with all drawings. Searching through the forums, I found that it can be fixed by turning off or undocking toolbars, and it worked. I hope that this will be fixed quickly as it is a real pain in the butt.
Last edited by wvar on Wed Sep 04, 2013 7:42 am, edited 1 time in total.
#61415 by Roger D
Sat Aug 31, 2013 8:24 am
one question, since you can toggle ortho on/off by just pressing the "o" key, 1 key hit, vs using the aliais Ctrl-spacebar, o, enter, 4 key hits, why use the alias.
I thought you were having that in the middle of a longer alias.
#61417 by wvar
Sat Aug 31, 2013 6:23 pm
Thanks Roger. I should have been more clearer. After all of these years of using DataCAD I am learning how to set up and use Alias's. I was fairly comfortable setting up Alias's wher the command could be found in th DataCAD main menu on the LH side of the screen. However, I did not know what to do when the the command is not in the main menu. Hence my question about ortho mode and reference point. They were mentioned only as an example only so that I could understand the methodology.

With your help, that of Josh plus going through some old forum posts, I think that I now understand a lot better. For this I thank you.
#61433 by wvar
Wed Sep 04, 2013 12:31 am
Now I am trying to write an Alias to switch to Sunshader. The following is the Alias that I added.
[ss]
comment=Sun shader
alias=^Ã#^
However, Datacad suts down when I execute this Alias. Note that the Alias code was written as :
^Alt+3015#^

What have I done wrong?
#61434 by Roger D
Wed Sep 04, 2013 5:46 am
The codes with the "#" afterwards are entered without the alt key, just have
^3015#^ and that is what will appear in the file.
#61435 by wvar
Wed Sep 04, 2013 7:11 am
Thanks Roger.
However, I entered ^3015#^ to start Sun Shader and nothing happens. I wonder why? It is listed as an Extended Character Code.
#61436 by wvar
Wed Sep 04, 2013 7:13 am
Aha
I now entered ^1053#^ and Sun Shader starts as expected.
Why is it that some codes work and others don't?
Also when do I enter codes using the Alt key and when don't I?
#61437 by Roger D
Wed Sep 04, 2013 7:33 am
Most codes work, 3015# is the first that I have heard does not.
It's also the 1st time there are 2 codes for the same thing that I know of.

The Alt key is used only on codes up to 0255 (those without the # sign at the end), after that you enter the 0000#.

Another way to accomplish activating the sun shader, you can modify the C:\DataCAD 15\Support Files\Messages and Labels\DcadWin.mnu file, find the line for Sun Shader line and add you key hit between the || lines.
I have mine as:
Sun Shader|CTRL+SHIFT+V|Launch Sun Shader
So using the keyboard I enter the 3 key hit holding down Ctrl & Shift then hit the V key.

Who is online

Users browsing this forum: No registered users and 110 guests

About DataCAD Forum

The DataCAD Forum is a FREE online community we provide to enhance your experience with DataCAD.

We hope you'll visit often to get answers, share ideas, and interact with other DataCAD users around the world.

DataCAD

Software for Architects Since 1984