Inventor.Circle vs Circle

Inventor.Circle vs Circle

nedeljko.sovljanski
Advocate Advocate
515 Views
7 Replies
Message 1 of 8

Inventor.Circle vs Circle

nedeljko.sovljanski
Advocate
Advocate

Hi,

 

Does anybody know why declaration for Circle must be done with

Dim oCircle as Inventor.Circle

instead of

Dim oCircle as Circle?

 

nedeljkosovljanski_0-1630157677838.png

 

0 Likes
Accepted solutions (1)
516 Views
7 Replies
Replies (7)
Message 2 of 8

bradeneuropeArthur
Mentor
Mentor

Because it is used in another object too.

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 8

nedeljko.sovljanski
Advocate
Advocate

Hi,

I agree that is used in another object but I can not find in which.

0 Likes
Message 4 of 8

bradeneuropeArthur
Mentor
Mentor

I don't see a difference.

Could you share the code you have problems with?

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 5 of 8

nedeljko.sovljanski
Advocate
Advocate

There is no particular problem but I am interested why in VBA it is necessary to use Inventor.Circle (and only for Circle) and in C# Inventor is redundant declaration.

For some newbies in macro writing in VBA it can be confusing, so I want someone to clarify.

0 Likes
Message 6 of 8

JelteDeJong
Mentor
Mentor

I could reproduce the "problem" but I could not find why. Usually, you need to add the namespace for an object type if the compiler does not know which namespace should be used. That implies that there is another namespace with the object "Circle" but I  could not find such namespace.

 

But if you are learning VBA then I would advise you to stop and start learning VB.net/iLogic. This is what Autodesk writes about VBA:

"For security reasons, the Microsoft VBA module is not included in the Inventor installer. It has a dependency on the Visual Studio 2010 (VC10) runtime, which Microsoft will not support after July 2020."

and

"As an alternative to VBA, consider using Inventor’s iLogic capability. It provides access to the Inventor API using VB.NET."

That sounds to me like the end of VBA and not something that I would put any effort in.

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes
Message 7 of 8

WCrihfield
Mentor
Mentor
Accepted solution

I see that Access (Microsoft Access) has a Class called Report, and Circle is a Member (Sub) of that  (Access.Report.Circle())

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 8 of 8

nedeljko.sovljanski
Advocate
Advocate

That is answer I am looking for. Thank you very much!

0 Likes