Jump to content

ALB

Member
  • Posts

    13
  • Joined

  • Last visited

Everything posted by ALB

  1. Thank you MullinRJ but it doesn't work. H := FInGroup(GetVPGroup(VPHnd, 2)) can't get my first selected object while inside a Viewport annotations However, I completely changed the approach to the problem. The following script works : PROCEDURE GetObjectWhileInsideVieportOrGroup ; VAR h:handle; FUNCTION ruota(hand:handle):BOOLEAN;{====ForEachObjectInList needs a function that returns a boolean=======} BEGIN Hrotate(hand,0,0,#45); END; BEGIN ForEachObjectInList(ruota,2,0,h);{====h is an handle to the first object in the list====} END; RUN(GetObjectWhileInsideVieportOrGroup); Alberto.
  2. Hi everybody, How can I get an handle to the first object selected while inside a Viewport annotations ? FSActlayer doesn't work. Thanks.
  3. I've noticed that when I use Tiles for fill my objects they appear "gray-layered" in printings. This is the same using laser printers, inkjet plotters anf pdf. It happens using Image fills too. Hatches, however, are well printed. Do you have any tip ? Thanks.... VW 2011 SP05- OSX 10.5.8
  4. @ mike m oz: That's what I was looking for ! Thank you very much !
  5. That's in design layers. If I create a Viewport of that design layer, section lines instances don't appear.
  6. I often use "Create Section Viewports" command in a top/plan design layer. I draw the section line to define the cutting plane. But.... when I create the viewport of the Top/plane view, section lines don't appear ! I must to redraw them over with line or polygon tool ! Do you ? Thanks.
  7. Yes, you're right! Thank you very much! My mistake was GetLVis(h)=1. Possible values are: Normal 0 Grayed 2 Invisible -1 This is my final script: Procedure prefix_visible_layer_names; VAR stringa, layer_name,new_name:STRING; h:HANDLE; BEGIN stringa:=StrDialog('Prefix string', '001.A' ); h:=FLayer; While h<>NIL DO BEGIN IF GetLVis(h)=0 THEN BEGIN; layer_name:=GetLName(h); new_name:=CONCAT(stringa,' ',layer_name); SetName(h,new_name); END; h:=NextLayer(h); END; END; RUN (prefix_visible_layer_names);
  8. Thank you... but it doesn't work! It's just for objects. In VS Function Reference I've found this: Function GetName returns the object name of the referenced object. The function returns None if the object has no object name. A handle to layer may not passed to this routine; to obtain a layer name, use GetLName. ...however SetLName(h,namelayer) doesn't exist!
  9. I have to change some layers name (eg. layers visibile) adding a prefix string. This is my scipt: Procedure prefix_layer_name; VAR stringa, nomelayer,nuovonome:STRING; h:HANDLE; visib:BOOLEAN; BEGIN stringa:=StrDialog('Prefix', 'AAAA001' ); h:=FLayer; While h<>NIL DO BEGIN IF GetLVis(h)=1 THEN BEGIN; nomelayer:=GetLName(h); nuovonome:=CONCAT(stringa,' ',nomelayer); { =====MISSING FUNCTION TO SET A NEW NAME======== } END; h:=NextLayer(h); END; END; RUN (prefix_layer_name); Best regards.
  10. Thank you for your tip ! I've tried to do what you said but.... it works only in OpenGL Mode. The VP in Hidde Line Render mode can't cover the VP with 2d stuff. (Obviously I send it backward!). So I've created 3 VP. 1. with 2d stuff 2. with 3d in Open GL Render Mode 3. with 3d in Hidden Line Render Mode Now it's well enough!
  11. I have a viewport in which I want assembly 2 layers: A 2d layer containing hatches an lines and a 3d layer which contains some volumes. The viewport (with "Project 2D Objects" and "Isometric Wiew" option) must be in Hidden Line Render mode but the 2D layer objects appear in the foreground and they hide the 3d volumes. How can I put them in background ? Thanks.
  12. ALB

    Deleting Layers

    Great ! It Works! I was using: DelObject(GetLayerByName(string_layer)); but it didn't work. Your tip made me change it with: old_lay:=GetLayerByName(string_layer); DelObject(old_lay); Have a good day! Thank You!
  13. How can I delete a sheet layer with Vectorscript ? I've founded DeleteClass(className:STRING); but don't DeleteLaye(layername:STRING); or DeleteLaye(layeh:HANDLE); Any idea ? Thanks
×
×
  • Create New...