Skip to main content
Question

Replace line with block reference

  • February 27, 2017
  • 2 replies
  • 119 views

jeroen
Contributor
Forum|alt.badge.img+8

I am working on a dwg drawing containing all the traffic lines in a city and markings that are on the roads. There is a layer for each type of line or objects (Stop and yield markings for example). The problem with the DWG is that the lines are just drawn with a polyline and contain a custom linetype that gives it the look of shark's teeth but in fact are not single object. The end result should visually be the same but instead of a polyline all teeth's should be block references. 

I use an free autocad pluguin mea+ to replace these lines with block references but this is quite a time consuming job in autocad.

Command: mea+
Measure with Points/Blocks/Lines/Selection ? <P>: b
Block to insert to Measure path: blok_5010
Scale for Blocks, or Graphic for symbol scaled to drawing <1>: 1
Blocks rotation, or Aligned with path or Relative angle to path [angle/A/R] <A>:
Layer for Blocks, or Current, or Same as selected path <Current>: BLOK_5010
Enter length of segment1
Standard measure alignment or Center on path length [S/C]? <Standard>: c
Select object to Measure:

 I tried looking for a solution in FME but could not find a similar function to replace polylines into block references. Is there a workaround so i can automate this in FME? 

0684Q00000ArBs5QAF.png

 

Rename NLCS.txt to NLCS.shx and then it is possible to load in together with the dwg. 

2 replies

takashi
Influencer
  • February 27, 2017

Hi @jdh009, this workflow might help you if "hatched areas" could satisfy your requirement, but I don't know the performance is better than the mea+ function. The LineDivider is a custom transformer published in the FME Hub.


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • February 27, 2017

Hi @jdh009

The Labeller transformer can be used to calculate the locations along the line to place the blocks:

patternlines.fmw

It will also calculate the rotation angle for the blocks at the placement location. The attached workspace illustrates how you can use it to render the VW-5050_STREEP linetype.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings