Creating Polygon trough Offset Error

Hello good GC Community

I've been having the greates time playing with GC this days, but I have a minor question that needs to be answered, so I can continue enjoying this fine tool.

Can anyone explain to me what kind of Input do I need in the "Polygon" Node using the "Offset" Technique??

I'm having a hard time with the "Offset Point" Input, the reason being that when I connect the first Polygon and the remaining nodes, I get an error that I don't understand.

Here is a Screenshot

Best Regards

Rafael

  • Hi Rafael,

    Could you please provide two more pieces of information/data?

    (1) when you mouse-over on the error badge, what is the message in it (screenshot of just that fly-over info is OK)?

    (2) do you mind providing the script, so that we can check the exact case of what is happening?

    Thank you,

          Volker

       

  • Hello Volker,

    Thank you for your help.

    I solved the issue by just erasing and creating the solid with another method, but I rewinded the transaction so you can see the code.

    Best Regards

    Rafael

    transaction 1 modelChange 'Add baseCS, Base_point1, Base_point2, Base_point3, Base_point4, Base_polygon1, Base_solid1'
    {
    node User.Objects.baseCS Bentley.GC.NodeTypes.CoordinateSystem
    {
    Technique = 'AtModelOrigin';
    DGNModelName = 'Design Model';
    SymbolSize = 1;
    GraphLocation = <auto> {40.0, 40.0};
    }
    node User.Objects.Base_point1 Bentley.GC.NodeTypes.Point
    {
    Technique = 'ByCartesianCoordinates';
    CoordinateSystem = baseCS;
    XTranslation = <free> 1553.5518115263;
    YTranslation = <free> 0.0;
    ZTranslation = <free> 0.0;
    GraphLocation = <auto> {314.0, 40.0};
    }
    node User.Objects.Base_point2 Bentley.GC.NodeTypes.Point
    {
    Technique = 'ByCartesianCoordinates';
    CoordinateSystem = baseCS;
    XTranslation = <free> 4057.36171942019;
    YTranslation = <free> 0.0;
    ZTranslation = <free> 0.0;
    GraphLocation = {319.0, 235.87};
    }
    node User.Objects.Base_point3 Bentley.GC.NodeTypes.Point
    {
    Technique = 'ByCartesianCoordinates';
    CoordinateSystem = baseCS;
    XTranslation = <free> 4057.36171942019;
    YTranslation = <free> 2153.93488478553;
    ZTranslation = <free> 0.0;
    GraphLocation = <auto> {314.0, 431.74};
    }
    node User.Objects.Base_point4 Bentley.GC.NodeTypes.Point
    {
    Technique = 'ByCartesianCoordinates';
    CoordinateSystem = baseCS;
    XTranslation = <free> 1593.7593787716;
    YTranslation = <free> 2153.93488478553;
    ZTranslation = <free> 0.0;
    GraphLocation = <auto> {314.0, 627.61};
    }
    node User.Objects.Base_polygon1 Bentley.GC.NodeTypes.Polygon
    {
    Technique = 'ByVertices';
    VertexPoints = {Base_point1, Base_point2, Base_point3, Base_point4};
    GraphLocation = {546.585, 44.968, 0.0, 115.59};
    }
    node User.Objects.Base_solid1 Bentley.GC.NodeTypes.Solid
    {
    Technique = 'OffsetFromClosedCurve';
    ClosedCurveToOffset = Base_polygon1;
    GraphLocation = {820.194, 44.539, 0.0, 142.443};
    }
    }

    transaction 2 modelChange 'Add Espesor_MDF; change Base_solid1'
    {
    node User.Objects.Espesor_MDF Bentley.GC.NodeTypes.Slider
    {
    Technique = 'Default';
    Value = 10.0;
    GraphLocation = {549.168, -120.289};
    }
    node User.Objects.Base_solid1 Bentley.GC.NodeTypes.Solid
    {
    Technique = 'OffsetFromClosedCurve';
    OffsetAboveCurve = Espesor_MDF;
    OffsetBelowCurve = 0;
    }
    }

    transaction 3 modelChange 'Change Base_point4, Espesor_MDF'
    {
    node User.Objects.Base_point4 Bentley.GC.NodeTypes.Point
    {
    Technique = 'ByCartesianCoordinates';
    XTranslation = <free> 1600.0;
    }
    node User.Objects.Espesor_MDF Bentley.GC.NodeTypes.Slider
    {
    Technique = 'Default';
    Value = 1.96;
    GraphLocation = {549.168, -104.289};
    }
    }

    transaction 4 modelChange 'Add coordinateSystem1; change baseCS, Base_point1, Base_point2, Base_point3, Base_point4, Espesor_MDF, Base_solid1'
    {
    node User.Objects.baseCS Bentley.GC.NodeTypes.CoordinateSystem
    {
    Visibility = NodeVisibility.Hidden;
    }
    node User.Objects.Base_point1 Bentley.GC.NodeTypes.Point
    {
    Technique = 'ByCartesianCoordinates';
    XTranslation = <free> 0.0;
    Visibility = NodeVisibility.Hidden;
    }
    node User.Objects.Base_point2 Bentley.GC.NodeTypes.Point
    {
    Technique = 'ByCartesianCoordinates';
    XTranslation = <free> 500.0;
    Visibility = NodeVisibility.Hidden;
    }
    node User.Objects.Base_point3 Bentley.GC.NodeTypes.Point
    {
    Technique = 'ByCartesianCoordinates';
    XTranslation = <free> 500.0;
    YTranslation = <free> 400.0;
    Visibility = NodeVisibility.Hidden;
    }
    node User.Objects.Base_point4 Bentley.GC.NodeTypes.Point
    {
    Technique = 'ByCartesianCoordinates';
    XTranslation = <free> 0.0;
    YTranslation = <free> 400.0;
    Visibility = NodeVisibility.Hidden;
    }
    node User.Objects.Espesor_MDF Bentley.GC.NodeTypes.Slider
    {
    Technique = 'Default';
    Value = 10.0;
    GraphLocation = {548.335, 168.211, 0.0, 141.237};
    }
    node User.Objects.Base_solid1 Bentley.GC.NodeTypes.Solid
    {
    GraphLocation = {839.361, 42.872, 0.0, 142.443};
    }
    node User.Objects.coordinateSystem1 Bentley.GC.NodeTypes.CoordinateSystem
    {
    Technique = 'FromPolygonVertices';
    GraphLocation = {1203.681, 83.172};
    }
    }

    transaction 5 modelChange 'Add direction1, polygon2'
    {
    node User.Objects.polygon2 Bentley.GC.NodeTypes.Polygon
    {
    Technique = 'Offset';
    PolygonToOffset = Base_polygon1;
    OffsetMethod = OffsetMethod.ByDistance;
    OffsetPoint = ;
    OffsetDistance = Espesor_MDF;
    GraphLocation = {945.081, 208.372, 174.0, 0.0};
    }
    node User.Objects.direction1 Bentley.GC.NodeTypes.Direction
    {
    Technique = 'ByOriginDirectionPoint';
    GraphLocation = {668.226, 409.679};
    }
    }

    transaction 6 modelChange 'Add Perforacion_point5; change coordinateSystem1, direction1, polygon2, Espesor_MDF'
    {
    node User.Objects.Espesor_MDF Bentley.GC.NodeTypes.Slider
    {
    GraphLocation = {552.335, 175.211, 0.0, 141.237};
    }
    node User.Objects.coordinateSystem1 Bentley.GC.NodeTypes.CoordinateSystem
    {
    GraphLocation = {1087.481, 340.772, 0.0, 115.59};
    }
    node User.Objects.polygon2 Bentley.GC.NodeTypes.Polygon
    {
    GraphLocation = {837.081, 222.372, 174.0, 0.0};
    }
    node User.Objects.direction1 Bentley.GC.NodeTypes.Direction
    {
    Technique = 'ByOriginDirectionPoint';
    Origin = baseCS;
    DirectionPoint = baseCS.ZDirection;
    GraphLocation = {595.946, 442.519, 174.0, 0.0};
    }
    node User.Objects.Perforacion_point5 Bentley.GC.NodeTypes.Point
    {
    Technique = 'AtIntersection';
    GraphLocation = {1048.896, 113.488, 0.0, 155.87};
    }
    }

  • Thank you, Rafael.

    It is great to hear that you found a work around. This is clearly a sign of your increasing skills with and knowledge about GenerativeComponents. 

    Of course, I have filed a defect about Polygon.Offset with OffsetMethod.ByDistance.  Thank you for pointing to this problem! 

    Regards,

         Volker

       

  • Thank you Volker for your support and good words.

    I've been enjoying learning GC and is very fullfilling to be able to understand it a little more,and I hope some day I can become a true GC Master.

    Best Regards

    Rafael

  • Hi Rafael,

    Thank you again for pointing out this defect. It has been fixed for GC CONNECT Edition Update 2.

    Regards,

         Volker

       

    Answer Verified By: Rafael Bombardiere Carvajal