Jump to content

Walther in Europe ( Mac us

Member
  • Posts

    31
  • Joined

  • Last visited

Everything posted by Walther in Europe ( Mac us

  1. Infopalet : When we select for exemple a rectangular, the infopalet gives us the surface. When we select two or three rectangulars, the infopalet tells us the total of those surfaces. But we cannot see the total of selected objects. For example : I draw a lot of switches ( symbols ) in layer ground-floor, but after a time a want to know how many switched I placed. I can easily select the symbol that represents the switch type and change them into another switch type B, but I can't see how many switched I have selected in the infopalet. I would be great to see how many objects are selected. Thanks,
  2. Within scripting we have the possibility to select on patterns, why can't we select on hatches or vectorfills that we made before in the drawing. I would be a great confort having that tools. Thanks,
  3. In my version ( Europe, Belgium, Dutch 9.53 ) I have that tool incorporated with the Architecture module. It means that I have a palet with 20 different types of walls, when I push one of the icon it gives me the wall I wanted to draw.( I can also change them as many times as I like to do, the are not locked ) Try to this script below ( maybe you should change the units from cm to inches ) but it works. Procedure CustTool; VAR Name:STRING; Result:BOOLEAN; BEGIN PushAttrs; ClearCavities; PenSize(14); PenPat(2); AddCavity(TRUE, -7cm, -17cm, 24); PenSize(14); PenPat(2); AddCavity(TRUE, -3cm, -7cm, 1); PenSize(14); PenPat(2); AddCavity(TRUE, 7cm, -3cm, 71); DoubLines(34cm); PenSize(14); PenPat(2); SetZVals(0cm, 250cm); FillFore(255); FillBack(0); FillPat(5); PenFore(255); PenBack(0); PenPat(2); PenSize(14); PenPat(2); CallTool(-208); PopAttrs; END; Run(CustTool); Good luck !
  4. Thanks for the tips :-), I am very happy. I have tried the last one and it works but how do you think I can have f.e three different kinds of hatches in one wall like the procedure below ( which is working ) but then not with the patterns changed by mu own existing vectorfills. And after that I would like to make also in several separated scripts different kinds of walls with one, two, three, four different vectorfills. Procedure CustTool; VAR Name:STRING; Result:BOOLEAN; BEGIN PushAttrs; ClearCavities; PenSize(14); PenPat(2); AddCavity(TRUE, -7cm, -17cm, 24); { not pattern 24 but vectorfill #x } PenSize(14); PenPat(2); AddCavity(TRUE, -3cm, -7cm, 1); { not pattern 1 but vectorfill #y } PenSize(14); PenPat(2); AddCavity(TRUE, 7cm, -3cm, 71); { not pattern 71 but vectorfill #z } DoubLines(34cm); PenSize(14); PenPat(2); SetZVals(0cm, 250cm); FillBack(0); FillPat(5); { in this case it is a general pattern that covers the whole wall below the others, something llike a background } PenFore(255); PenBack(0); PenPat(2); PenSize(14); PenPat(2); CallTool(-208); PopAttrs; END; THANKS A LOT FOR SUPPORTING
  5. The reason why I use hatches or vector-fills is that I often work with engineers that use Autocad . We cannot export patterns (bitmap) into DWG or DXF, because Autocad doesn't support patterns. So when using vector-fills I can produce quite a lot of more different kinds of special hatches and I'm able to export them to not-VectorWorks users. In that case my drawing will be more readable by my engineers. I'll test your advise, thanks.
  6. Hello, I found today this forum and I am learning VectorScript Language. I would like writing and automatic plug-in or script that is able to select one of the existing Hatches that I made before in my existing list of hatches with a Wall tool. I'm an European user and my version is 9.5.3 (Dutch language) except for the scripts which are in English ( Apple OS X Jaguar or OS 9.22 ) I would like to be able to click on different buttons that give me depending the button I choose for example a certain wall with a pensize, a hatch, a fillback ....but I don't know how to select the hatch with the procedure below. In the following script I can select a wall with a pattern, but I prefere to select one of my own created hatches...... Procedure CustTool; VAR Name:STRING; Result:BOOLEAN; BEGIN PushAttrs; ClearCavities; DoubLines(30cm); PenSize(14); PenPat(2); SetZVals(0cm, 250cm); FillFore(255); FillBack(0); FillPat(5); PenFore(255); PenBack(0); PenPat(2); PenSize(14); PenPat(2); CallTool(-208); PopAttrs; END; Run(CustTool); I found the procedure SetVectorFill(theObj:HANDLE; hatchName:STRING):BOOLEAN; which I think could be useful, but I don't know if it is the right procedure and how to fill in some values. What should I write instead of <theObj:HANDLE> ? <hatchName:STRING> ( my own hatch between ' ' ) ? and instead of <BOOLEAN> YES/NO 0 or 1 ? After wich line do I place the procedure Or has someone better ideas or already created such a script ? Thanks a lot !
×
×
  • Create New...