Skip to main content

Hi Guys,

 

an easy one for you, but I'm still learning and i haven't found an article yet.

 

One writer in my workbench should be inserted in an existing dwg file.

 

How or with which params i can do that? (i dont find one)

Greetz and cheers

Franco

Hi Franco, I don't think it's possible to insert a layer into an existing dwg file, since the dwg format doesn't support Feature Operations unfortunately.


Hi Franco,

You can't exactly add data to an existing file. But... in the parameters set that file as a template and Preserve Template File Model Space Data = Yes, and then you will get a new file but it will have the existing and new data merged.

Here, for example, I add a layer of parks to a dataset of traffic signals already in DWG:


Hi Takashi,

 

Hi Mark,

i have an autocad file with cadastre and areas with numbers.....

 

as an result of my workbench certain numbers should get symbols (circles-should be a new layer)

 

is this the only way it function to write it in a new dwg and set this as a xref file?

 

 

Greetz and Cheers

 

Franco

You can use the DWG styler on the data prior to writing it.

If the symbols are existing ones, just refer to them. If not create them and the create reference.

As i understand it you want to symbolise existing data according to outcome of workbench, rather then actually adding a new layer?


Hi Gio,

 

not exactly

 

i want put a circle (new symbol, new layer) around existing data (numbers) according to outcome of workbench...to write a new dwg with this symbols i have already the workbench for this, but my question was if i could write this result (circles) in the same dwg (either i have defined the layer or not), because to have only the circles in a xref would be not so well.

Greetz

 

Franco

Hi Gio,

 

not exactly

 

i want put a circle (new symbol, new layer) around existing data (numbers) according to outcome of workbench...to write a new dwg with this symbols i have already the workbench for this, but my question was if i could write this result (circles) in the same dwg (either i have defined the layer or not), because to have only the circles in a xref would be not so well.

Greetz

 

Franco

You could also set up a translation from DWG->DWG -- then read the data and write it all out to a new DWG. So long as there are no complex blocks etc, it should work. Use the original DWG as the template file of the output DWG as well, but this time, not with preserving the original models. Then you can easily test and introduce new entities in the FME Workspace, such as you needed above.


Hi Franco,

You can't exactly add data to an existing file. But... in the parameters set that file as a template and Preserve Template File Model Space Data = Yes, and then you will get a new file but it will have the existing and new data merged.

Here, for example, I add a layer of parks to a dataset of traffic signals already in DWG:

Hi Mark, I don't think this works. I was trying to do the exact same thing to work around the current limitation of not being able to dynamically define layer properties/attributes aside from the layer names (needing to merge various dwg files together to use as a layer template). However with the above example any features read from "Parks" are added to new layers within the new dwg, but with default color and linetype as specified in the writer. So these attributes cannot be made to match the ones as defined in "Parks". Is there a way around this? We really need the ability to preserve all layer settings and not just transfer the name and set everything else to a default value. PS: I have a case currently open about this exact thing, filed last evening 08/25/2016 (C119206). Thanks.

 

 


Reply