Ask questions about DataCAD 20, DataCAD LT 20, or previous versions here.
#5758 by Philip Hart
Tue Sep 06, 2005 9:26 am
I thought that I would add some buttons to a toolbar dropdown that I already had for Clip Cube functions so I did this (changes, additions in bold):

[CLIPCUBE]
DropDownCount=5
Hint=ClipCube menu options
Icon=CLPCUB_S

Hint00=Clip Cube Menu
Icon00=CLPCUB_S
L00=72

Hint01=Clip Cube ON
Icon01=4CUBON
A01=^Õ^

Hint02=Clip Cube OFF
Icon02=4CUBOFF
A02=^Ö^

Hint03=Ignore Z ON
Icon03=4CUBON
A03=^÷^

Hint04=Ignore Z OFF
Icon04=4CUBOFF
A04=^≈^


I changed the dropdown count to 5 and made the last two entries. Based on the New Features documentation, I added Alt+1014 and Alt+1015 and used “old” icons while trying to figure this out. When I went to save the file I got this message:

“This file contains characters in Unicode format which will be lost if you save this file as an ANSI encoded text file. To keep the Unicode information, click Cancel below and then select one of the Unicode options from the Encoding drop down list. Continue?”

If I save as ANSI, the buttons appear as they should, “old” buttons work, but the new ones do not. If I save as Unicode, all buttons disappear and nothing works.

This is the first time that I’ve tried to modify a dtb file since switching from a Windows 2000 Pro system to one running XP Pro. I’m editing the file in Notepad, the font is Lucinda Console (I tried switching to Courier - same results).

I’m sure that there is something obvious that I’m missing, but I just don’t see it. Any help would be appreciated.

Thanks,

Philip
#5759 by David A. Giesselman
Tue Sep 06, 2005 9:38 am
Philip Hart wrote:Hint03=Ignore Z ON
Icon03=4CUBON
A03=^÷^

Hint04=Ignore Z OFF
Icon04=4CUBOFF
A04=^≈^


Hi Philip:

Instead of the above, try the following:

Code: Select all[IgnoreZ On]
Hint03=Ignore Z ON
Icon03=4CUBON
V=1014

[IgnoreZ Off]
Hint04=Ignore Z OFF
Icon04=4CUBOFF
V=1015

Dave
#5765 by joshhuggins
Tue Sep 06, 2005 11:00 am
Where did the V= come from? I see it twice in the Rev. History for the Jamb In & Out codes but searched the manual, DDN and other docs and don't see them anywhere else. Where can I find more info on V= :?:
#5767 by David A. Giesselman
Tue Sep 06, 2005 11:32 am
These "V=" action codes were added several versions back to allow controlling certain variables/toggles within DataCAD. The codes implemented thus far are:
  • 1000 : Vertex in the Polygons menu On
  • 1001 : Vertex in the Polygons menu Off
  • 1002 : Diameter in the Polygons menu On
  • 1003 : Diameter in the Polygons menu Off
  • 1004 : Inscribe in the Polygons menu On
  • 1005 : Inscribe in the Polygons menu Off
  • 1006 : Rectangle in the Polygons menu On
  • 1007 : Rectangle in the Polygons menu Off
  • 1008 : Rectangle in the Polyline menu On
  • 1009 : Rectangle in the Polyline menu Off
  • 1010 : Symbol Browser On
  • 1011 : Symbol Browser Off
  • 1012 : Jamb In in the Doors/Windows menu On
  • 1013 : Jamb In in the Doors/Windows menu Off
  • 1014 : Ignore Z in the Clipcube menu On
  • 1015 : Ignore Z in the Clipcube menu Off
  • 1016 : Entity in the 1Ln Trim menu On
  • 1017 : Entity in the 1Ln Trim menu Off


Sorry for the confusion, I didn't realize that we had not publicized these.

Dave
#5768 by joshhuggins
Tue Sep 06, 2005 11:53 am
Actually they are listed in the extended character codes page of the DDN, but I've always used the extended character codes with A= sequences. What's the difference between A= & V= ? Does V= only apply to the 1000 series? Thanks for any more light :D
#5770 by Philip Hart
Tue Sep 06, 2005 12:09 pm
Thanks Dave!

When I changed it to V03=1014 and V04=1015 it worked fine.

It would be great to have a single source for a complete list of Extended Character Codes, Action codes, etc. with an explanation of the various types.
#5771 by David A. Giesselman
Tue Sep 06, 2005 12:11 pm
These "V" codes were introduced expressly for accessing drawing settings (Variables) from a toolbar. They may also be used in a keyboard sequence (macro or alias) by appending a "#" (pound sign) to the number (i.e. ^1014#^ in a key sequence would turn Ignore Z On). On the other hand, the "A" codes are typically used to take you to a particular menu (an Action).

Dave
#5772 by joshhuggins
Tue Sep 06, 2005 12:12 pm
Thanks Dave :!:

Who is online

Users browsing this forum: No registered users and 66 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