C#

C#

Anonymous
Not applicable
551 Views
6 Replies
Message 1 of 7

C#

Anonymous
Not applicable
I need to explore writing some distributed Inventor apps using .Net. I have a little over 3 years experience writing AutoCad add-ons using VB6. Little hacking with C++. I am considering using C# in the dotNet platform. Anybody else making this transition? If so, any suggestions would be appreciated.
0 Likes
552 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable
Is there anything specific you're anting to know about?

--
"It's more important that you know how to find the answer than to have
the answer." - Me

"CareyHatcher" wrote in message
news:f162149.-1@WebX.maYIadrTaRb...

I need to explore writing some distributed Inventor apps using .Net. I
have a little over 3 years experience writing AutoCad add-ons using VB6.
Little hacking with C++. I am considering using C# in the dotNet
platform. Anybody else making this transition? If so, any suggestions
would be appreciated.
0 Likes
Message 3 of 7

Anonymous
Not applicable
Well, My first test was to populate a treeview from the occurences of and assembly and I got stuck. I cannot figure out how to access the occurrences collection items. I can get the object but none of the Inventor collections appear to have the items property.
0 Likes
Message 4 of 7

Anonymous
Not applicable
The Item property is exposed as an indexer in C#:

PartsListColumn column = null;

for (int i = 1; i < myInventorCollection.Count; i++)
{
column = myInventorCollection;
Console.WriteLine(column.Title);
}

Another way is to use a foreach loop but not all Inventor collections
support it:

foreach (PartsListColumn column in myInventorCollection)
{
Console.WriteLine(column.Title);
}

--
"It's more important that you know how to find the answer than to have
the answer." - Me


"CareyHatcher" wrote in message
news:f162149.1@WebX.maYIadrTaRb...

Well, My first test was to populate a treeview from the occurences of
and assembly and I got stuck. I cannot figure out how to access the
occurrences collection items. I can get the object but none of the
Inventor collections appear to have the items property.
0 Likes
Message 5 of 7

Anonymous
Not applicable
Thanks Frank, I'll try that and get back with you as soon as it bombs. 🙂
0 Likes
Message 6 of 7

Anonymous
Not applicable
Worked like a charm!

Thanks again Frank.
0 Likes
Message 7 of 7

Anonymous
Not applicable
Any time.


--
"It's more important that you know how to find the answer than
to have the answer." - Me


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Worked
like a charm!

Thanks again Frank.

0 Likes