Some profiles do not appear in the product tree in HatchRegions ?

Some profiles do not appear in the product tree in HatchRegions ?

nebi_guler
Enthusiast Enthusiast
515 Views
5 Replies
Message 1 of 6

Some profiles do not appear in the product tree in HatchRegions ?

nebi_guler
Enthusiast
Enthusiast

sectionview.PNG

 

The models I have marked in the image are not included in the HatchRegions product tree. What could be the reason? Can you help me?

 

  for (int i = 0; i < sectionDrawingViewRight.Count; i++)
  {
      if (sectionDrawingViewRight[i].HatchRegions.Count > 0)
      {
          for (int x = 1; x < sectionDrawingViewRight[i].HatchRegions.Count; x++)
          {

DrawingViewHatchRegion upperDrawingViewHatchRegion = sectionDrawingViewRight[i].HatchRegions[x];


AssemblyDocument upperAssemblyDocument = ((AssemblyDocument)((DocumentDescriptor)((dynamic)((SurfaceBody)upperDrawingViewHatchRegion.SurfaceBody).Parent).ReferencedDocumentDescriptor).Parent);

Console.WriteLine(((dynamic)((SurfaceBody)upperDrawingViewHatchRegion.SurfaceBody).Parent)._DisplayName+" : "+i+"- x"+x);

DrawingViewHatchRegion netherDrawingViewHatchRegion = sectionDrawingViewRight[i].HatchRegions[x + 1];

AssemblyDocument netherAssemblyDocument = ((AssemblyDocument)((DocumentDescriptor)((dynamic)((SurfaceBody)netherDrawingViewHatchRegion.SurfaceBody).Parent).ReferencedDocumentDescriptor).Parent);

Console.WriteLine(((dynamic)((SurfaceBody)netherDrawingViewHatchRegion.SurfaceBody).Parent)._DisplayName + " : " + i + "- x" + (x + 1));
}
}
}
0 Likes
Accepted solutions (1)
516 Views
5 Replies
Replies (5)
Message 2 of 6

WCrihfield
Mentor
Mentor

Hi @nebi_guler.  I can not be sure about if what I am about to suggest may be the reason for this behavior, but it does sound logical.  While that specific model document is the active one showing on your screen, go to the Tools tab, then to the Options panel, then click on the 'Document Settings' (not application options).  On the 'Modeling' tab, is a setting named "Participate in Assembly and Drawing Sections".  You may have to ensure there is a checkmark in that checkbox to make sure it is enabled for that one model document.

WCrihfield_0-1716904182498.png

If this solved your problem, or answered your question, please click ACCEPT SOLUTION .
Or, if this helped you, please click (LIKE or KUDOS) 👍.

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 6

nebi_guler
Enthusiast
Enthusiast

Hi @WCrihfield  I've already checked them all. All checked, the problem persists

0 Likes
Message 4 of 6

nebi_guler
Enthusiast
Enthusiast

Hi @WCrihfield result.PNGI need to do the above process with code and automate it. With this setting the view in the section plan will be correct.

 

0 Likes
Message 5 of 6

WCrihfield
Mentor
Mentor
Accepted solution

Hi @nebi_guler.  I am not sure how to do what you are showing in that image.  It seems to require having a model node selected under a drawing view in the model browser tree, then activating some sort of command.  The only command I could find that sounds similar to that is "AllowSectionParticipation".  But, that is just a simple command, with no way of specifying which of the 3 sub variations you want.  Plus, it would require navigating the model browser tree below a specific view, then finding those few specific model nodes, select one at a time, then execute that command.  That would require a lot of very custom code.

 

The only other two things that come to mind are the DrawingView.InheritSection property, which does not sound correct for this situation.  And the DrawingView.StandardPartsSectionBehavior property, which accepts a variation of the StandardPartsSectionBehaviorEnum as its value.  That second one sounds like it might be able to help, because it sounds like it will override the section participation that may be set on the individual model level.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 6 of 6

nebi_guler
Enthusiast
Enthusiast
0 Likes