AutoCAD Map 3D Forum
Welcome to Autodesk’s AutoCAD Map 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D topics.
cancel
Showing results for 
Search instead for 
Did you mean: 

controlling "global width" in a DWG-export from Map3D

5 REPLIES 5
Reply
Message 1 of 6
GPT_Maria
420 Views, 5 Replies

controlling "global width" in a DWG-export from Map3D

Hi all,

 

I need to export data from an Oracle-connection (application module). Regardless of the definition of the application module, what is the best way (best practice) to export points, lines and polygons in a WYSIWYG-way?!

 

In my special case I'm dealing with lines and their appearance.

So, short story long Smiley Wink

 

  • Case A
    • layer-file contains (important tags are highlighted)
      <SymbolInstance>
       <SimpleSymbolDefinition>
        <Name>LTYP8</Name>
        <Description>GEOBOX Abwasser, Haltung, Axe, ungenau</Description>
        <Graphics>
         <Path>
          <Geometry>M 0,0 L 900,0</Geometry>
          <ScaleX>%SCALEX%</ScaleX>
          <ScaleY>%SCALEY%</ScaleY>
          <LineColor>%LINECOLOR%</LineColor>
          <LineWeight>%LINEWEIGHT%</LineWeight>
          <LineWeightScalable>false</LineWeightScalable>
          <LineCap>%LINECAP%</LineCap>
          <LineJoin>%LINEJOIN%</LineJoin>
         </Path>
        </Graphics>
        <LineUsage>
         <Repeat>1200</Repeat>
        </LineUsage>
        <ParameterDefinition>
         <Parameter>
          <Identifier>LINECOLOR</Identifier>
          <DefaultValue>0xff000000</DefaultValue>
          <DisplayName>Linienfarbe</DisplayName>
          <Description>Linienfarbe</Description>
          <DataType>LineColor</DataType>
         </Parameter>
         <Parameter>
          <Identifier>LINEWEIGHT</Identifier>
          <DefaultValue>0.0</DefaultValue>
          <DisplayName>Linienstärke</DisplayName>
          <Description>Linienstärke</Description>
          <DataType>LineWeight</DataType>
         </Parameter>
         <Parameter>
          <Identifier>SCALEX</Identifier>
          <DefaultValue>1.0</DefaultValue>
          <DisplayName>Pfad Skalierfaktor X</DisplayName>
          <Description>Pfad Skalierfaktor X</Description>
          <DataType>Real</DataType>
         </Parameter>
         <Parameter>
          <Identifier>SCALEY</Identifier>
          <DefaultValue>1.0</DefaultValue>
          <DisplayName>Pfad Skalierfaktor Y</DisplayName>
          <Description>Pfad Skalierfaktor Y</Description>
          <DataType>Real</DataType>
         </Parameter>
         <Parameter>
          <Identifier>LINECAP</Identifier>
          <DefaultValue>'Round'</DefaultValue>
          <DisplayName>Linienabschluss</DisplayName>
          <Description>Linienabschluss</Description>
         </Parameter>
         <Parameter>
          <Identifier>LINEJOIN</Identifier>
          <DefaultValue>'Round'</DefaultValue>
          <DisplayName>Linienverbindung</DisplayName>
          <Description>Linienverbindung</Description>
         </Parameter>
        </ParameterDefinition>
       </SimpleSymbolDefinition>
       <ParameterOverrides>
        <Override>
         <SymbolName>LTYP8</SymbolName>
         <ParameterIdentifier>LINECOLOR</ParameterIdentifier>
         <ParameterValue>Lookup (ID_UTILISATION,0xFFFFFF00,1,0xFF000000,2,0xFF0000FF,3,0XFF00FF00,4,0XFFFF0000,5,0xFFFF00FF,6,0xFF0000FF,7,0xFF0000FF,8,0XFFFF0000,9,0xFF000000,10,0xFF0000FF)</ParameterValue>
        </Override>
        <Override>
         <SymbolName>LTYP8</SymbolName>
         <ParameterIdentifier>LINEWEIGHT</ParameterIdentifier>
         <ParameterValue>250</ParameterValue>
        </Override>
        <Override>
         <SymbolName>LTYP8</SymbolName>
         <ParameterIdentifier>SCALEX</ParameterIdentifier>
         <ParameterValue>1</ParameterValue>
        </Override>
        <Override>
         <SymbolName>LTYP8</SymbolName>
         <ParameterIdentifier>SCALEY</ParameterIdentifier>
         <ParameterValue>1</ParameterValue>
        </Override>
        <Override>
         <SymbolName>LTYP8</SymbolName>
         <ParameterIdentifier>LINECAP</ParameterIdentifier>
         <ParameterValue>'None'</ParameterValue>
        </Override>
        <Override>
         <SymbolName>LTYP8</SymbolName>
         <ParameterIdentifier>LINEJOIN</ParameterIdentifier>
         <ParameterValue>'Round'</ParameterValue>
        </Override>
       </ParameterOverrides>
       <ScaleX>1</ScaleX>
       <ScaleY>1</ScaleY>
       <SizeContext>MappingUnits</SizeContext>
       <UsageContext>Line</UsageContext>
       <GeometryContext>LineString</GeometryContext>
      </SymbolInstance>
    • as a result the map looks like:
      map1.JPG
      The dashed line is 0.25m wide and has a pattern of 0.9m dash, 0.3m space, which correspond to the layer definition (measurments are in mm)
    • the DWG-export looks like (To keep the linetype pattern I choose a DWT-drawing which contains the linetypes (here: LTYP8)):
      map1_export.JPG
      The pattern is correct, but the line width is not what expected. A plot to PDF has the same result.
  • Case B
    • layer-file contains (important tags are highlighted)
      <SymbolInstance>
       <SimpleSymbolDefinition>
        <Name>LTYP8</Name>
        <Description>GEOBOX Abwasser, Haltung, Axe, ungenau</Description>
        <Graphics>
         <Path>
          <Geometry>M 0,0 L 9,0</Geometry>
          <ScaleX>%SCALEX%</ScaleX>
          <ScaleY>%SCALEY%</ScaleY>
          <LineColor>%LINECOLOR%</LineColor>
          <LineWeight>%LINEWEIGHT%</LineWeight>
          <LineWeightScalable>false</LineWeightScalable>
          <LineCap>%LINECAP%</LineCap>
          <LineJoin>%LINEJOIN%</LineJoin>
         </Path>
        </Graphics>
        <LineUsage>
         <Repeat>12</Repeat>
        </LineUsage>
        <ParameterDefinition>
         <Parameter>
          <Identifier>LINECOLOR</Identifier>
          <DefaultValue>0xff000000</DefaultValue>
          <DisplayName>Linienfarbe</DisplayName>
          <Description>Linienfarbe</Description>
          <DataType>LineColor</DataType>
         </Parameter>
         <Parameter>
          <Identifier>LINEWEIGHT</Identifier>
          <DefaultValue>0.0</DefaultValue>
          <DisplayName>Linienstärke</DisplayName>
          <Description>Linienstärke</Description>
          <DataType>LineWeight</DataType>
         </Parameter>
         <Parameter>
          <Identifier>SCALEX</Identifier>
          <DefaultValue>1.0</DefaultValue>
          <DisplayName>Pfad Skalierfaktor X</DisplayName>
          <Description>Pfad Skalierfaktor X</Description>
          <DataType>Real</DataType>
         </Parameter>
         <Parameter>
          <Identifier>SCALEY</Identifier>
          <DefaultValue>1.0</DefaultValue>
          <DisplayName>Pfad Skalierfaktor Y</DisplayName>
          <Description>Pfad Skalierfaktor Y</Description>
          <DataType>Real</DataType>
         </Parameter>
         <Parameter>
          <Identifier>LINECAP</Identifier>
          <DefaultValue>'Round'</DefaultValue>
          <DisplayName>Linienabschluss</DisplayName>
          <Description>Linienabschluss</Description>
         </Parameter>
         <Parameter>
          <Identifier>LINEJOIN</Identifier>
          <DefaultValue>'Round'</DefaultValue>
          <DisplayName>Linienverbindung</DisplayName>
          <Description>Linienverbindung</Description>
         </Parameter>
        </ParameterDefinition>
       </SimpleSymbolDefinition>
       <ParameterOverrides>
        <Override>
         <SymbolName>LTYP8</SymbolName>
         <ParameterIdentifier>LINECOLOR</ParameterIdentifier>
         <ParameterValue>Lookup (ID_UTILISATION,0xFFFFFF00,1,0xFF000000,2,0xFF0000FF,3,0XFF00FF00,4,0XFFFF0000,5,0xFFFF00FF,6,0xFF0000FF,7,0xFF0000FF,8,0XFFFF0000,9,0xFF000000,10,0xFF0000FF)</ParameterValue>
        </Override>
        <Override>
         <SymbolName>LTYP8</SymbolName>
         <ParameterIdentifier>LINEWEIGHT</ParameterIdentifier>
         <ParameterValue>250</ParameterValue>
        </Override>
        <Override>
         <SymbolName>LTYP8</SymbolName>
         <ParameterIdentifier>SCALEX</ParameterIdentifier>
         <ParameterValue>1</ParameterValue>
        </Override>
        <Override>
         <SymbolName>LTYP8</SymbolName>
         <ParameterIdentifier>SCALEY</ParameterIdentifier>
         <ParameterValue>1</ParameterValue>
        </Override>
        <Override>
         <SymbolName>LTYP8</SymbolName>
         <ParameterIdentifier>LINECAP</ParameterIdentifier>
         <ParameterValue>'None'</ParameterValue>
        </Override>
        <Override>
         <SymbolName>LTYP8</SymbolName>
         <ParameterIdentifier>LINEJOIN</ParameterIdentifier>
         <ParameterValue>'Round'</ParameterValue>
        </Override>
       </ParameterOverrides>
       <ScaleX>100</ScaleX>
       <ScaleY>100</ScaleY>
       <SizeContext>MappingUnits</SizeContext>
       <UsageContext>Line</UsageContext>
       <GeometryContext>LineString</GeometryContext>
      </SymbolInstance>
    • now the map looks like:
      map2.jpg
      The dashed line is 0.25m wide and has a pattern of 0.9m dash, 0.3m space, which correspond to the layer definition (measurments are in mm)
    • the DWG-export looks like (To keep the linetype pattern I choose a DWT-drawing which contains the linetypes (here: LTYP8)):
      map2_export.JPG
      It's getting closer to what I expect. But a plot to PDF reveals to a solid line.
  • Case C
    • changing the LineWeightScalable to true and the value of LineWeight to 2.5 has the same results as case b, but with a line width (Linienstärke) of 0.

 

What I want:

I tried to modify the properties of the polyline in the DWG. Finally I came to this:

map3.JPG

In a PDF-plot it looks like (only one purple line is modified):

map3_plot.JPG

Why I need to set the line type factor (Linientypfaktor) to 30 is not quite clear to me. But the parameter "global width" (Globale Breite) seems to be a hint.
The aiming scale has always been 1:100.

 

How can I control this?

 

Any hints or solutions are appreciated!

 

 

Cheers,

Maria

5 REPLIES 5
Message 2 of 6
hence_the_name
in reply to: GPT_Maria

Hi Maria,

 

when you export to DWG - which option do you use with "MAPTOACADUSELINEWEIGHT"?

 

Befehl: MAPTOACADUSELINEWEIGHT
Methode zum Konvertieren der Linienstilstärke auswählen [Linienstärke/Polylinienbreite]  <Linienstärke>:p

Rob

 

http://raumpatrouille3d.blogspot.ch/
Message 3 of 6
GPT_Maria
in reply to: hence_the_name

Hi Robert!

 

I didn't know of this parameter. Thanks, that helped a bit.

Now the DWG looks like

neu.JPG

 

But how can I set the Line Type Factor (Linientypfaktor)?

Message 4 of 6
hence_the_name
in reply to: GPT_Maria

Hi Maria,

 

we solved this by configuring our Map layers in a specific way. There might be other possibilities.

DWG Export has changed - with Map 2013 we had to workaround certain issues wich have been fixed in newer releases.

 

You will find more about how we set up our layers on this blog:

 

https://raumpatrouille3d.blogspot.ch/search?q=linien

 

The older posts are in German, the newer ones in English.

 

Rob

http://raumpatrouille3d.blogspot.ch/
Message 5 of 6
GPT_Maria
in reply to: hence_the_name

Hey Rob,

 

alright, I am now getting closer. MAPTOACADUSELINEWEIGHT and layer-definitions have to play together. I need to overhaul the files...

 

One more question which arose in the meantime: Is it possible to export offset lines? The path-definition looks like: M 0,5 h 4.0, thus an offset in direction of Y. My DWG is straight on Y=0. That's it? 

Message 6 of 6
hence_the_name
in reply to: GPT_Maria

Hi Maria,

 

with regards to the offset - I dont know. We never had the situation as far as I remember. 

I'm not sure - I think an AutoCAD line needs to start with a line. You would need to have a look on the AutoCAD side as there is propably not option/setting in Map export/layer configuration for that.

 

Rob

http://raumpatrouille3d.blogspot.ch/

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report


”Boost