Linetype, SHX and support files order behavior

Linetype, SHX and support files order behavior

cyberflow
Advisor Advisor
114 Views
6 Replies
Message 1 of 7

Linetype, SHX and support files order behavior

cyberflow
Advisor
Advisor

Hi all,

Was wondering how does ACAD manage the support file order when resolving linetypes ?

cyberflow_0-1756488708522.png

 

 

A)
Is it when browsing throughout the directories as soon at it find in the correct file the same shapefile name with the correct name defined in the SHX it resolves and stops searching ? 

C:\SupportFiles\LT-Shapes.shx (incorrect shx file - Ignored) 

C:\SupportFiles\LT-Shapes.shx (incorrect shx file - Ignored)

C:\SupportFiles\LT-Shapes.shx (Found !)

B)
It goes throughtout everyone of them and as soon there's a hit it stops parsing ?


C:\SupportFiles\LT-Shapes.shx (incorrect shx file - Ignored) 

C:\SupportFiles\LT-Shapes.shx (Found !)

C:\SupportFiles\LT-Shapes.shx (incorrect shx file - Not used)

Frank Freitas

CAE/CAD/BIM Coordinator & Support Specialist

LinkedIn
0 Likes
115 Views
6 Replies
Replies (6)
Message 2 of 7

pendean
Community Legend
Community Legend

@cyberflow The moment AutoCAD finds a file name/format that matches what it seeks then stops looking: it starts with the top most subfolder inside the folder you have selected in your screenshot.

 

Whether what it found is to you "right or wrong" it does not care, it does not examine the content of that file in any intelligent way.

Message 3 of 7

cyberflow
Advisor
Advisor

@pendean Thanx Pendean

 

Let's say there's a linetype definition called :
LINE_AERIAL and in its definition there's an "AERIAL" contained in LT-Shapes.shx

 

But there's also a "AERIAL" in a filename called "All-Shapes.shx so it would be searched first in that shapefile.

Will Acad pull it out inside of LT-Shapes.shx or All-Shapes.shx ?

TIA, seems a but stupid to ask but it's basic stuff to understand and important when managing a template !
Really appreciate the help

Frank Freitas

CAE/CAD/BIM Coordinator & Support Specialist

LinkedIn
0 Likes
Message 4 of 7

pendean
Community Legend
Community Legend

Which is it doing for you that prompted this post? AutoCAD just stops once it finds the first instance of that SHX file, right?

Message 5 of 7

cyberflow
Advisor
Advisor

@pendeanThese are all hypothetical scenarios to better understand AutoCAD's behavior — nothing has happened yet, I don't have any issues at the moment, I just want to understand clearly.

So, if AutoCAD finds a shape that isn’t in the expected .shx file, will it still consider that shape and stop searching for it in the intended .shx file ?

In other words does it considere matchin shape name and filename ?

Frank Freitas

CAE/CAD/BIM Coordinator & Support Specialist

LinkedIn
0 Likes
Message 6 of 7

Kent1Cooper
Consultant
Consultant

Shape inclusions in Linetype definitions contain the file name where it is to get the shape from.  So the scenario in Message 3 can't occur.

Kent Cooper, AIA
Message 7 of 7

cyberflow
Advisor
Advisor

Thanx @Kent1Cooper ; Pretty much what i was thinking, they both need to be paired the shapename and filename.shx !

Thank you folks, seems obvious but sometimes when your taking care of some standards that are not well done you have surprises

Frank Freitas

CAE/CAD/BIM Coordinator & Support Specialist

LinkedIn
0 Likes