Skip to main content
Solved

How add unique ID/Value to an Element

  • January 8, 2022
  • 2 replies
  • 67 views

Forum|alt.badge.img+3

Hello friends,

Im a new user of FME.

 

I have a dgn file with hundreds of points with or without tags. i need to convert this dgn to shp with unique custom ids. Is it any procedure or transformers to do this in fme. I mean each point have unique id numbers

 

I tried with many videos and tutorials didn't solve my issue

 

thanks

Best answer by chithramc

Hello friends,

I solve the issue in this way

 

Reader > counter >Attribute Manager>writer

 

Reader = dgn and writer = shp

 

Counter = Change counter parameters

  1. count start (only numeric values)
  2. Output attribute name

Attribute = Attribute parameter Values

  1. parameter condition definition changed
  2. changed test condition and attribute value

Writer = Feature Type > user attributes > manual > typ change to char

for forum new attribute value creating

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

Forum|alt.badge.img+2
  • 1891 replies
  • January 10, 2022

@chithramc​  If you want integer IDs you can use the Counter. UUIDGenerator will create, well, UUID's.


Forum|alt.badge.img+3
  • Author
  • 6 replies
  • Best Answer
  • January 11, 2022

Hello friends,

I solve the issue in this way

 

Reader > counter >Attribute Manager>writer

 

Reader = dgn and writer = shp

 

Counter = Change counter parameters

  1. count start (only numeric values)
  2. Output attribute name

Attribute = Attribute parameter Values

  1. parameter condition definition changed
  2. changed test condition and attribute value

Writer = Feature Type > user attributes > manual > typ change to char

for forum new attribute value creating