Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Subspressing all chamfer or fillets with iLogic

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
j_weber2
620 Views, 5 Replies

Subspressing all chamfer or fillets with iLogic

Hi everybody,

i'm not an expert in iLogic.

So i ask my if it is possible to create a rule to subspress all filltes or chamfers in a part by an iLogic rule.

I found a rule by Curits where all solid in a part do this.

Perherps someone of the iLogic Experts have an idea for me.

 

thanks a lot

 

 




Jörg Weber
CAD Systemtechniker für AutoCAD, Inventor, Vault





5 REPLIES 5
Message 2 of 6
xiaodong_liang
in reply to: j_weber2
Message 3 of 6
DeerSpotter
in reply to: j_weber2

Subspressing all chamfer or fillets with iLogic

 

Question: 
Is it possible to create a rule to subspress all filltes or chamfers in a part by an iLogic rule?

Solution: 
The code below self explains how to suppress the specific features.

 

 

'get part document
doc = ThisDoc.Document
'get part definition
oDef = doc.ComponentDefinition
 
Dim oEachF As PartFeature
'iterare each feature
For Each oEachF In oDef.Features
    'if it is a chamfer or fillet
    If TypeOf oEachF Is ChamferFeature Or TypeOf oEachF Is FilletFeature Then
        'suppress it
        oEachF.Suppressed = True
    End If
Next
 

 

 Guy above me did a great job +1

Image and video hosting by TinyPic
..........................................................................................................................
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.
..........................................................................................................................


See My LinkedIn Profile
Message 4 of 6
j_weber2
in reply to: j_weber2

Thanks a lot.

I works fine.

 

thank you, good work




Jörg Weber
CAD Systemtechniker für AutoCAD, Inventor, Vault





Message 5 of 6
m.hermann
in reply to: j_weber2

Hi all,

and how do i undo this, unsubspress?

Message 6 of 6
Ktomberlin
in reply to: m.hermann

create another rule with this line set to false, or you could make a message box window with a radio button for suppressed, unsuppressed options.

oEachF.Suppressed = False

 

or

 

ButtonParm = InputRadioBox("Add or Remove Fillets & Chamfers", "Yes", "No", booleanParam, Title := "SFAC ?")
'get part document 
'Created by xiaodong.liang
doc = ThisDoc.Document
'get part definition 
oDef = doc.ComponentDefinition
Dim oEachF As PartFeature
'iterare each feature
For Each oEachF In oDef.Features
    'if it is a chamfer or fillet
    If TypeOf oEachF Is ChamferFeature Or TypeOf oEachF Is FilletFeature Then
        'suppress it
		oEachF.Suppressed = ButtonParm
        'oEachF.Suppressed = False
    End If
Next

 

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

Post to forums  

Autodesk Design & Make Report