Zum Hauptinhalt gehen

Get Attribute from Capture Geometry

Kommentare

5 Kommentare

  • Permanently deleted user

    Hi Gordy

    assuming that you have a FeatureSet then ssing an Assign activity:

    strVar = FeatureSetName.Features(0).Attributes("AttributeName").Value.ToString

    should work for you. You will of course need to finetune depending on the datatype of the attributes that you are dealing with.

    Regards

    Ralph

    0
  • Permanently deleted user

    Thank you for your help,

    When I use the following in an assign; query_result.Features(0).Attributes("PID").Value.ToString

    I get the error Option Strict On disallows late binding 

    Any Ideas?

    Thanks

    0
  • Permanently deleted user

    Hi Gordy

    so your attribute is an integer field?

    Howabout:

    intVar = FeatureSetName.Features(0).Attributes("AttributeName").Value

    where intVar is declared to be an integer

    Ralph

    0
  • Permanently deleted user

    Yes my attribute is an integer field

    With some trail and error I found that  intVar =FeatureSetName.Features(0).Attributes("AttributeName").ToString worked.

    Many Thanks,

    0
  • Permanently deleted user

    Thank you Ryan,

    That worked perfect, and I did have some NULL values which caused the workflow to crash, which is now fixed. 

    Gordy

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.