Skip to main content
Hi,

 

 

I've posted this before, but it seems that after a few days nobody looks at it anymore to improve the answers.

 

 

https://safe.secure.force.com/AnswersQuestionDetail?id=906a0000000csa8AAA

 

 

I think questions should have a not solve button/tick, and then it can move up to the top of the list for review.

 

 

I have a list of 3ds models in a csv file. Each row in the csv file it also have xyz shift.

 

example:

 

m:\\data\\models2011\\CA000123.3ds, 33001.98, 58125.76, 12.54

 

m:\\data\\models2012\\CB000426.3ds, 33004.11, 58123.12, 12.94

 

m:\\data\\models2013\\NWB010426.3ds, 34014.11, 59193.34, 14.55

 

etc.

 

 

From previous answers it was suggested to use featurereader transformer + csv reader, but i cannot get it to work, because the dataset need to be a directory, but i want the dataset to be the row-column entry in the csv file

 

after reading the 3ds file, do offset for the row entry in csv file and write to sketchup.

 

 

read m:\\data\\models2011\\CA000123.3ds

 

off with  33001.98, 58125.76, 12.54 (= x,y,z) - 3ds models 0,0,0 origin

 

convert to sketchup

 

 

next line in csv file etc.

 

 

Rudy V

 

 

 

 

 

 

 

 

 

 

Hi again,

 

 

I think the WorkspaceRunner (suggested by David at first) can be used to do that. For example:

 

  Create new workspace, put a 3DS Reader. Source dataset parameter (3ds file path) will be published automatically. Define 3 published parameters to receive x / y / z offset values. Add an Offsetter transformer, link X / Y / Z Offset to corresponding published parameters. Add a SkechUp Writer to write models after offsetting.   Create second workspace, put a CSV Reader to read 3ds file path, xoffset, yoffset and zoffset line by line. Add a WorkspaceRunner, specify the first workspace file path to "FME Workspace"; pass 3ds file path and x / y / zoffset values to the first workspace through the corresponding published parameters.   Run the second workspace.

 

 

Takashi

Reply