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: 

How to check an not Attach a Detail View Boundary

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
ngnam1988
220 Views, 3 Replies

How to check an not Attach a Detail View Boundary

ngnam1988
Advocate
Advocate

Dears,

I'm trying check the detail view boundary that not attached to parent view. Please help me how to do get it. Thanks,

 

ngnam1988_0-1708066076286.png

 

0 Likes

How to check an not Attach a Detail View Boundary

Dears,

I'm trying check the detail view boundary that not attached to parent view. Please help me how to do get it. Thanks,

 

ngnam1988_0-1708066076286.png

 

Tags (3)
3 REPLIES 3
Message 2 of 4
A.Acheson
in reply to: ngnam1988

A.Acheson
Mentor
Mentor

Hi @ngnam1988 

Maybe this what your looking for?

Syntax

DetailDrawingView.AttachPoint() As GeometryIntent

 

If that isn't what your looking for please explain in a little more detail. 

 

Property Value

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan

Hi @ngnam1988 

Maybe this what your looking for?

Syntax

DetailDrawingView.AttachPoint() As GeometryIntent

 

If that isn't what your looking for please explain in a little more detail. 

 

Property Value

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
Message 3 of 4
ngnam1988
in reply to: A.Acheson

ngnam1988
Advocate
Advocate

Thanks @A.Acheson 
Normally, in our technical drawings its must be attached manually. I wanna check the boundary is attached or not? If not return the warning.

0 Likes

Thanks @A.Acheson 
Normally, in our technical drawings its must be attached manually. I wanna check the boundary is attached or not? If not return the warning.

Message 4 of 4
FINET_Laurent
in reply to: ngnam1988

FINET_Laurent
Advisor
Advisor
Accepted solution

Hello @ngnam1988,

 

To acommplish this, we can check the AttachPoint property of a detail drawing view. If it is nothing, this means that the boundary is not attached to any geometry (free). If it is something else, this means it is attached. Here an example code that let you pick a drawing view & checks for this property :

Dim v As Inventor.DrawingView = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kDrawingViewFilter, "")
If v.Type <> ObjectTypeEnum.kDetailDrawingViewObject Then Exit Sub
	
If v.AttachPoint is nothing then msgbox("Not attached!")

 

Would that suits your needs ?

 

Kind regards,

FINET L.

If this post solved your question, please kindly mark it as "Solution"

If this post helped out in any way to solve your question, please drop a "Like"

@LinkedIn     @JohnCockerill

Hello @ngnam1988,

 

To acommplish this, we can check the AttachPoint property of a detail drawing view. If it is nothing, this means that the boundary is not attached to any geometry (free). If it is something else, this means it is attached. Here an example code that let you pick a drawing view & checks for this property :

Dim v As Inventor.DrawingView = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kDrawingViewFilter, "")
If v.Type <> ObjectTypeEnum.kDetailDrawingViewObject Then Exit Sub
	
If v.AttachPoint is nothing then msgbox("Not attached!")

 

Would that suits your needs ?

 

Kind regards,

FINET L.

If this post solved your question, please kindly mark it as "Solution"

If this post helped out in any way to solve your question, please drop a "Like"

@LinkedIn     @JohnCockerill

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

Post to forums  

Autodesk Design & Make Report