Skip to main content
Solved

How add unique ID/Value to an Element


chithramc
Participant
Forum|alt.badge.img+4

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

View original
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

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


chithramc
Participant
Forum|alt.badge.img+4
  • Author
  • Participant
  • 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