Skip to main content

Hi,

I want to write a RealDWG using custom hatches on FME Flow.

When working on FME Form, we put the hatch files in <FME install folder>/plugins/realdwg/Support and it works. But when uploading the workspace to FME Flow, where should these files be placed? Is there a designated location for them in the Resources?

Any help appreciated.

Cheers,

Julien

Hi Julien,

 

Thank you for your post!

Are the custom hatches referenced in the workspace at all through a user parameter on runtime, or just configured through the transformer?

When publishing the workspace, you should be able to select the custom files to upload at the same time, in which case, putting them in the Data folder should be fine.

Hopefully this helps, but if you have any other questions or problems please let me know, and I can dig into this further!

 

Kate


Hi Kate,

Thanks for your help.

The hatch patterns are passed to the workspace by name through the DWGStyler (see below) and an associated template. The template references the custom hatches and everything works fine on desktop, so we thought it was the way to go.

The template itself is passed to the workspace as a parameter. The template file is correctly uploaded on the server.

 

We tried uploading the .pat file along with the workspace but without luck, the warning remains the same:

AutoCAD Writer: The combination of pattern type 'Pre-defined' and pattern name 'VIGNE' was found to be invalid. Using a default predefined hatch pattern of value of 'SOLID'

We were looking for a folder containing .pat files on the server to upload our custom hatches, but maybe there is another way.

I join a minimal example containing input data, template, hatch file and workspace.

 

Cheers,

Julien


Apologies for the delay!

 

A couple of paths you could try:

  1. SharedResources/Engine/plugins/(create folder realdwg/support)
  2. Server/fme/plugins/realdwg/support

Please let us know if either of those paths work!


Hi Kate,

No problem, thanks for your answer.

N°1 didn’t change anything but n°2 did the trick! We now see custom hatch in the dwg files produced by FME Flow.

 

Thanks a lot for your help

 

Julien


Wonderful glad to hear it Julien!  


Reply