Is it possible to delete element in pattern?

Is it possible to delete element in pattern?

tm21915
Contributor Contributor
1,154 Views
6 Replies
Message 1 of 7

Is it possible to delete element in pattern?

tm21915
Contributor
Contributor

Hello I need to delete last element of the pattern, I would be really grateful for help, is that possible to do?

0 Likes
Accepted solutions (2)
1,155 Views
6 Replies
Replies (6)
Message 2 of 7

A.Acheson
Mentor
Mentor
Accepted solution

Hi @tm21915 

You won't be able to delete but you can suppress. 

Example.

OccurrencePatternElement.Suppressed() As Boolean

 

Could you give a little more context as to the request? If you can let us know how you are doing it manually we can see how to do it by code. 

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 3 of 7

Frederick_Law
Mentor
Mentor

@tm21915 wrote:

Hello I need to delete last element of the pattern, I would be really grateful for help, is that possible to do?


Last element?

Make the count - 1

0 Likes
Message 4 of 7

tm21915
Contributor
Contributor

Hello Thank you for reply. Attached I tried to explain the concept. I will try with suppressing elements. Are suppressed elements calculated in Bills of quantities? or just active are included?

 

I am making greenhouse structure. Different widths are defined by clients input, outer columns have different thickness from inner ones.  This is just example it can have more different widths and different combinations.

My idea was using one pattern and then making element independent and using it for another pattern. However I have problem of overlapping.  For some patterns first element was imported to the right place and used as starting point.

 

I dont know if there is some easier way because I feel like I m over complicating things, every suggestion that could solve this problem or simplify it would be really helpful.  

Thank you in advance

0 Likes
Message 5 of 7

WCrihfield
Mentor
Mentor
Accepted solution

If you make the pattern element Independent first, then you can delete the component that was held in that position, but the pattern element object itself will stay present in the model browser tree, with nothing in it.  I think it is kept in memory though, because you can then make that element not independent again, and that component will reappear.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 6 of 7

WCrihfield
Mentor
Mentor

If you do not want something to be counted in the BOM, there are two main options, other than deleting that object.  The first, and more proper way, is to set the ComponentOccurrence.BOMStructure to kReferenceBOMStructure.  The second, and seemingly more popular option, is to suppress the object/component.  Suppression unloads the object from Inventor's session memory, for performance purposes, but also excludes that item from the BOM.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 7 of 7

tm21915
Contributor
Contributor

Thank you a lot for answers it helped me solved my problem

0 Likes