Jump to content

David Poiron

Member
  • Posts

    203
  • Joined

  • Last visited

Posts posted by David Poiron

  1. Using VW2008, I have a DTM with a few site modifier pads. Trouble is they are drawn in red and I cannot figure our how to change this. They even show up as red lines in renderings. I've tried changing attributes, class, and rendering to no avail. There must be a simple way to change this?

  2. Well, this code is magic! Here is the resulting code that seems to work. Any optimizations would be appreciated.

    code:

    If IsNewCustomObject(ObjectName) THEN

    BEGIN

    If IsVPGroupContainedObject(objectHand, 2) = TRUE THEN

    BEGIN

    layerScale:=GetObjectVariableReal(objectHand, 1003);

    END

    ELSE BEGIN

    layerScale:=getLScale(ActLayer);

    END

    END

    ELSE

    If IsVPGroupContainedObject(objectHand, 2) = TRUE THEN

    BEGIN

    layerScale:=GetObjectVariableReal(GetVPGroupParent(GetParent(objectHand)), 1003);

    END

    ELSE BEGIN

    layerScale:=getLScale(getLayer(ObjectHand));

    END;
    [/code]

    Thanks.

  3. There does not seem to be a way to access the scale set for the viewport. Although this may not be the problem as I tried this on a 1:1 scale viewport and the problem still exists. NNA objects of a similar type (elevation markers, etc.) seem to work properly, so their code has some special magic! But of course we do not access this code, unless someone is listening? [Wink]

  4. I have a few PIOs that I created for VW 9/10 that function properly in VW 11 and 12 except in viewport annotations. When in a viewport annotation and a parameter is changed, they redraw improperly. Should I be checking to see if the PIO is in an annotation, and if so, how would this be done? Is there a different origin that I should be aware of?

  5. I am trying to set the gradient fill angle of a wall, based on its rotation angle. I have found a number of vectorscript procedures that are for gradient fills, but do not know how to tie them together to determine the fill angle. Anyone know how this might be done?

×
×
  • Create New...