Understanding STR

Home Forums Problems and solutions in GDL Others Understanding STR

This topic contains 1 reply, has 2 voices, and was last updated by  Gergely Fehér 1 year, 11 months ago.

  • Author
    Posts
  • #3596

    David Seabury
    Participant

    I have an object that we use to generate data for our surveyor.
    we schedule these objects and then convert them into a plain text
    file for their use.

    The problem I am having is the script does not work if a generated
    value is less then 1 EXAMPLE (X VALUE), (Y VALUE), (Z VALUE)
    1.2345, -.1234, 12.3456
    is scheduled as 1.2345, -1,234, 12.3456

    The y value is wrong.

    I am sure it is due to the STR script I am using, but I am not sure which value needs to be changed.
    Any insight would be appreciated.

    The following is located in the properties script.

    component “XYZ,” + str(“%#10.4df”,SYMB_POS_X) + “,” + str(“%#10.4df”,SYMB_POS_Y) + “,” + str(“%#10.4df”,SYMB_POS_Z), 1, “m”

    Thanks

    David

  • #3601

    Gergely Fehér
    Keymaster

    David,

    I could not reproduce the issue. Can you send us a pla in mail (gdlcenter@graphisoft.com), with the following information: AC main version, build number, localization, platform?

    Thanks.

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

You must be logged in to reply to this topic.