Jump to content

vhector

Member
  • Posts

    92
  • Joined

  • Last visited

Posts posted by vhector

  1. Is there a way to export the drawing or maybe only vieport as "what you see is what you get".

    In vectorworks we always work solids and line in front or in back of each other. So like for example if you export a drawing and the part of a line behind a solid isn't exported with it. Save a lot of work for the other party who works with that dwg file.

  2. In a way that's what I'm doing, I even created a loci symbol palette for differnt paper sizes. But when I'change the page count from even to uneven then I heave to move everything again to half a page.

    It's not that i don't reach my purpose, but I hoped it could be reached on an easier way.

    But thanks Pat

  3. Well, I use multiple sheetlayers. It depends the reason of the pdf I make.

    I like it to have a kind of booklet form (bit indisign feeling). A front, then everypage an other floor situation etc, upt to maybe say 10 to 20 pages. So then when I print pdf I have a kind of pdf booklet. Mostly an A4/A3 page setup

    Other thing is that now I can select all the title blocks at once and change the date at once.

    Also sometimes it is easy when doing double sided pages for layouting. I can see the overall look of it.

    I use then other sheetlayers for posters A0/A1 and other formats, or trials.

  4. Is there a way to snap on the pages in the sheetlayer, so I can put the drawing border on the good location? Espacially when I have multiple pages.

    At the moment I use the drawing border of the Tool Set. Lck and fit to page so I have snap points at the outer corners. Then put another drawing border to the wanted page size and snap it to the corner of the first drawing border. Then I delete the first drawing border and copy the second to the rest of the pages. Well not the easiest way right?

  5. I think I know now what does the differnece with combining and composing between 12 and 2009. In 2009 there is new snapping and finding the vertexes. I think it is in 2009 more precise when I move the vertex with snap to endpoint it will compose and it will combine. In 12 it doesn't read that precise and will be easier to combine or compose. If it is good or not it depends on the drawing.

    For the drawing I'm working at the moment it's a bit frustrated because it's a big imported dwg of a city that needs alot of composing. So I took it back to 12, and there it goes more smoothly

  6. The problem goes further.

    the same file takes a few seconds to open in 12 and about half a minute 2009. Same sheetlayer I made a pdf from is like 2,4 mb in 12 and about 46mb in 2009. Only diference is I used i little opacity in 2009. But this can't be it to do this huge difference.

    Is it that 2009 is so much heavier or is it something with the references.

    Well I tried to make the 2009 pdf without the opacity, that is making the difference. It gets like 3,2 mb. And that for only a few trees. With the opacity I also made a rastarized one and that went to 10mb, this is weird, because a flat image doesn't see opacity.

  7. recently we bought VW 2009.

    Got a little problem with the object combine tool. It is much slower in 2009 then 12. Often it doesn't work with poly's and especially when they are on top of each other. Sometimes I even have to strech lines first to each other before they can be combined.

    Is this because 2009 reads everything more precise. This is most the point with imported .dwg files, and I use this tool the most with the imported.

    I've got this problem with more tools,, especially with big files. Files get bigger then in 12, and with purge they get even bigger.

    Further the panning is also slow, also here I think its about that it has to read more, helped putting all the highlights off.

    Luckly I got Ctrl+s in my fingers wirh all the colapsing.

  8. I read in the VSLG that it has to do with 'resultStatus:=GetCustomObjectInfo(objName); {brings it to the object info palette I guess}

    I resultStatus THEN BEGIN

    I tried to use but again errrors

    Procedure Tree;

    VAR

    treestyle :INTEGER;

    barval,objName :STRING;

    BEGIN {mail procedure}

    {VectorWorks Version 14.0.2(99197)}

    { retrieve custom object information }

    resultStatus:= GetCustomObjectInfo(objname);

    { if custom object data was retrieved successfully }

    IF resultStatus THEN BEGIN

    { retrieve parameter values }

    barval := PTREE_STYLE;

    { set tree style }

    IF barval = 'TreeA' THEN treestyle:= 1

    ELSE IF barval = 'TreeB' THEN treestyle:= 2

    ELSE IF barval = 'TreeC' THEN treestyle:= 3;

    Case treestyle of {Case statement select one set of code from a list of options}

    { TreeA-style tree }

    1:BEGIN {treeA}

    { draw tree }

    PushAttrs;

    {Object Creation Code}

    PenSize(2);

    PenPat(2);

    FillPat(1);

    PenFore(0,0,0);

    PenBack(65535,65535,65535);

    FillFore(0,0,0);

    FillBack(25307,46041,23648);

    Oval(-50.875,50.875,50.875,-50.875);

    SetZVals(0,0);

    {End of Creation Code}

    PopAttrs;

    END; {treeA}

    { TreeB-style tree }

    2:BEGIN {treeB}

    { draw tree }

    PushAttrs;

    {Object Creation Code}

    PenSize(2);

    PenPat(2);

    FillPat(1);

    PenFore(0,0,0);

    PenBack(65535,65535,65535);

    FillFore(0,0,0);

    FillBack(25307,46041,13648);

    Oval(-50.875,50.875,50.875,-50.875);

    SetZVals(0,0);

    {End of Creation Code}

    PopAttrs;

    END; {treeB}

    { TreeC-style tree }

    3:BEGIN {treeC}

    { draw tree }

    PushAttrs;

    {Object Creation Code}

    PenSize(2);

    PenPat(2);

    FillPat(1);

    PenFore(0,0,0);

    PenBack(65535,65535,65535);

    FillFore(0,0,0);

    FillBack(12307,46041,23648);

    Oval(-50.875,50.875,50.875,-50.875);

    SetZVals(0,0);

    {End of Creation Code}

    PopAttrs;

    END; {treeC}

    End; {case}

    END; {main procedure}

    Run(Tree);

  9. Many thanks Pat

    I now get the object and can change it in the 'enter text' dialog but not with the pop-up parameter. How do I do that. I made in the parameters a new pop-up, and wrote in the choices the TreeA/B/C names. What do I put in the script for connecting it.

    Has it to do with this line " barval:=StrDialog('Enter Type of Tree','TreeA'); {this will let the user type in the tree type}".

    Instead of 'Enter Type of Tree','TreeA', something with parameter.

  10. I got no experience with scripting, so tried a pop-up samplescript (scalebar) in a more simplistic form. But got errors like identifier and labels. I read that identifier had to do with the compiler. Can somebody explain maybe these terms bettter, so I'll could go further on stying scripting.

    Here is the basic script I'm working at.

    Procedure Tree;

    VAR

    treestyle :INTEGER

    barval :STRING;

    BEGIN

    {VectorWorks Version 14.0.2(99197)}

    { set tree style }

    IF barval = 'TreeA' THEN treestyle:= 1

    ELSE IF barval = 'TreeB' THEN treestyle:= 2

    ELSE IF barval = 'TreeC' THEN treestyle:= 3;

    { TreeA-style tree }

    1:BEGIN

    { draw tree }

    PushAttrs;

    {Object Creation Code}

    PenSize(2);

    PenPat(2);

    FillPat(1);

    PenFore(0,0,0);

    PenBack(65535,65535,65535);

    FillFore(0,0,0);

    FillBack(25307,46041,23648);

    Oval(-50.875,50.875,50.875,-50.875);

    SetZVals(0,0);

    {End of Creation Code}

    PopAttrs;

    END;

    { TreeB-style tree }

    2:BEGIN

    { draw tree }

    PushAttrs;

    {Object Creation Code}

    PenSize(2);

    PenPat(2);

    FillPat(1);

    PenFore(0,0,0);

    PenBack(65535,65535,65535);

    FillFore(0,0,0);

    FillBack(25307,46041,13648);

    Oval(-50.875,50.875,50.875,-50.875);

    SetZVals(0,0);

    {End of Creation Code}

    PopAttrs;

    END;

    { TreeC-style tree }

    3:BEGIN

    { draw tree }

    PushAttrs;

    {Object Creation Code}

    PenSize(2);

    PenPat(2);

    FillPat(1);

    PenFore(0,0,0);

    PenBack(65535,65535,65535);

    FillFore(0,0,0);

    FillBack(12307,46041,23648);

    Oval(-50.875,50.875,50.875,-50.875);

    SetZVals(0,0);

    {End of Creation Code}

    PopAttrs;

    END;

    END;

    Run(Tree);

  11. Thanks Gerrit, that looks pretty simple, I got try it out, when i'm back at work. And to add to the parameter you have to name it scalefactor for recognition? Ahwell i try it out, thanks.

  12. I';m trying to learn a bit of scripting and find the logic within, but withouot luck so far. It think i get allready wrong at refering naming.

    I just vectorscript exported an object. how do you refere a parameter with the script, like scaling the object or something.

    Here the objectcode

    Procedure LoadFile;

    VAR

    hatchName, gradientName, objectName:STRING;

    result, index, segmentIndex:INTEGER;

    boolResult:BOOLEAN;

    top, left, bottom, right:REAL;

    BEGIN

    {VectorWorks Version 12.5.1 (64620)}

    NameClass('00-aanduiding');

    BeginGroup;

    NameClass('0');

    ClosePoly;

    PenSize(10);

    PenPat(2);

    FillPat(1);

    PenFore(4369,4369,4369);

    PenBack(65535,65535,65535);

    FillFore(0,0,0);

    FillBack(65535,65535,65535);

    BeginPoly;

    CurveTo(-2.679491924311261,-10.000000000000005);

    CurveTo(2.679491924311269,-10.000000000000005);

    CurveTo(7.320508075688748,-7.320508075688746);

    CurveTo(10.000000000000005,-2.679491924311269);

    CurveTo(10.000000000000005,2.679491924311261);

    CurveTo(7.320508075688748,7.320508075688738);

    CurveTo(2.679491924311269,10.000000000000002);

    CurveTo(-2.679491924311261,10.000000000000002);

    CurveTo(-7.320508075688738,7.320508075688738);

    CurveTo(-10.000000000000002,2.679491924311261);

    CurveTo(-10.000000000000002,-2.679491924311269);

    CurveTo(-7.320508075688738,-7.320508075688746);

    EndPoly;

    Marker(0,0.078735,35);

    MoveTo(0,10.000000000000002);

    LineTo(0,-9.999999999999892);

    MoveTo(9.999999999999778,-0.000000000000002);

    LineTo(-9.999999999999659,-0.000000000000002);

    PenSize(2);

    MoveTo(0.606217782649082,-0.000000000000002);

    LineTo(0.606217782649082,9.981608086876578);

    FillBack(8738,8738,8738);

    BeginPoly;

    ArcTo(0.303387885506254,10.000000000000002,0);

    LineTo(0,10.000000000000002);

    LineTo(0,-0.000000000000002);

    LineTo(0.606217782649082,-0.000000000000002);

    LineTo(0.606217782649082,9.981608086876578);

    EndPoly;

    FillPat(0);

    FillBack(52428,65535,65535);

    TextFont(GetFontID('KCAPSVtBold'));

    TextSize(18);

    TextFace([]);

    TextFlip(0);

    TextRotate(0);

    TextSpace(2);

    TextJust(1);

    TextVerticalAlign(1);

    TextOrigin(0.403384191623047,6.457722222222182);

    BeginText;

    'N'

    EndText;

    EndGroup;

    SetZVals(0,0);

    {End of Creation Code}

    {Default Attributes}

    PenSize(2);

    PenPat(2);

    FillPat(1);

    Marker(0,0.125,15);

    PenFore(0,0,0);

    PenBack(65535,65535,65535);

    FillFore(0,0,0);

    FillBack(65535,65535,65535);

    {End of Default Attributes}

    END;

    Run(LoadFile);

  13. Is there a way to export only the viewport/sheetlayer to dwg. so that it is cropped and the annotations is also in the export. Some measurments is done in the annotations, I would like to export with the drawing to dwg

×
×
  • Create New...