Announcements
Due to scheduled maintenance, the Autodesk Community will be inaccessible from 10:00PM PDT on Oct 16th for approximately 1 hour. We appreciate your patience during this time.
Advance Steel Forum
Welcome to Autodesk’s Advance Steel Forums. Share your knowledge, ask questions, and explore popular Advance Steel topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Advance Steel .NET API Walkthroughs are now available!

36 REPLIES 36
Reply
Message 1 of 37
manolic
6002 Views, 36 Replies

Advance Steel .NET API Walkthroughs are now available!

Hello Everyone,

 

New Advance Steel .NET API walkthroughs are now available here



Cosmin Manoliu

Senior Manager, Engineering
36 REPLIES 36
Message 2 of 37
ChristianBlei
in reply to: manolic

And where is here?

 

BR, Christian Blei

Christian Blei
CBT Christian Blei Tools
christianblei.de
youtube.com/channel/UCxjA_NbeScQy9C0Z1xjwXpw
Message 3 of 37
muleman1
in reply to: ChristianBlei

http://help.autodesk.com/view/ADSTPR/2016/ENU/?guid=GUID-15154F08-0BE8-4547-B94A-ACA8D284E219   @ChristianBlei

....How easy it is to acquire knowledge, yet how difficult and painstaking is the process of gaining wisdom. .... Chuck Swindoll
Message 4 of 37
manolic
in reply to: manolic

If you wonder how to use together AutoCAD and Advance Steel API, you might find useful the new walthrough:

http://help.autodesk.com/view/ADSTPR/2016/ENU/?guid=GUID-0AFEFD2B-EED4-4F6A-8F97-BA0814E99643



Cosmin Manoliu

Senior Manager, Engineering
Message 5 of 37
phliberato
in reply to: manolic

In the Code Region "Selecting a beam" there is a problem. I can't convert Intptr(id.OldIdPtr) to AcDbObjectId*. How can I fix it?

 

ASObjectId idDbObject = DatabaseManager.GetFilerObjectId(new ASObjectId(id.OldIdPtr), false);

Message 6 of 37
ChristianBlei
in reply to: phliberato

Hello,

 

 

what about

 

Dim tObJId As New DatabaseServices.ObjectId(id.OldIdPtr)?

 

 

BR,

Christian Blei

Christian Blei
CBT Christian Blei Tools
christianblei.de
youtube.com/channel/UCxjA_NbeScQy9C0Z1xjwXpw
Message 7 of 37
ChristianBlei
in reply to: phliberato

Hello, 

 

this is the metadata for CadLink.DataBase.ObjectId

 

 

Namespace Autodesk.AdvanceSteel.CADLink.Database
Public Class ObjectId
Implements IDisposable

 

Public Sub New(other As ObjectId)

 

Public Shared ReadOnly Property kNull As ObjectId

Public NotOverridable Overrides Sub Dispose()
Protected Overridable Sub Dispose(A_0 As Boolean)

Public Function AsOldId() As IntPtr
Public Overridable Function Equals(obj As ObjectId) As Boolean
Public Function IsNull() As Boolean

Public Shared Operator =(obj1 As ObjectId, obj2 As ObjectId) As Boolean
End Class
End Namespace

 

 

The argument in New(other As ObjectId ) does not make sense to me- it is creating a circular definition.

Sub New should take a System.IntPtr as argument.

Function .AsOldId is returning a System.IntPtr !!!!!!!

 

 

BR,

Christian Blei

Christian Blei
CBT Christian Blei Tools
christianblei.de
youtube.com/channel/UCxjA_NbeScQy9C0Z1xjwXpw
Message 8 of 37
ChristianBlei
in reply to: phliberato

Hello,

 

You can use the AcObjId.Handle.ToString to access the filerobject

 

Dim tHandle As String = tAcObjId.Handle.ToString()
Dim tObj As FilerObject = FilerObject.GetFilerObjectByHandle(tHandle)

 

 

BR,

Christian Blei

Christian Blei
CBT Christian Blei Tools
christianblei.de
youtube.com/channel/UCxjA_NbeScQy9C0Z1xjwXpw
Message 9 of 37
ChristianBlei
in reply to: phliberato

Hello,

 

Sorry.

 

I checked

 

Dim tObjId as Autodesk.Autocad.Databaseservices.ObjectId= nothing

.......

 

Dim tHandle As String = tObjId.Handle.ToString()                                          

Dim tObj As FilerObject = FilerObject.GetFilerObjectByHandle(tHandle)

 

The filermethod .GetFilerObjectByHandle throws an exception.

 

I am curious what the Advance API developers will comment.

 

 

BR,

Christian Blei

Christian Blei
CBT Christian Blei Tools
christianblei.de
youtube.com/channel/UCxjA_NbeScQy9C0Z1xjwXpw
Message 10 of 37
ChristianBlei
in reply to: phliberato

Hello,

 

I did some tests. The AutoCad Entity and the advance object have sequencing handles (or ObjIds). The question is, where is the connecting property.........

 

BR,

Christian Blei

Christian Blei
CBT Christian Blei Tools
christianblei.de
youtube.com/channel/UCxjA_NbeScQy9C0Z1xjwXpw
Message 11 of 37
manolic
in reply to: phliberato

The problem with Advance Steel ObjectId not accepting a constructor argument of type IntPtr probably comes from the fact that you are not using Advance Steel 2016 R2 API.



Cosmin Manoliu

Senior Manager, Engineering
Message 12 of 37
ChristianBlei
in reply to: manolic

Hello Cosmin,

 

I will immediately install the AS2016 R2.....

and the update did it.

 

 

BR,

Christian

Christian Blei
CBT Christian Blei Tools
christianblei.de
youtube.com/channel/UCxjA_NbeScQy9C0Z1xjwXpw
Message 13 of 37
phliberato
in reply to: ChristianBlei

Thanks @ChristianBlei and @manolic for your support.
I have the AS2016 Hotfix 1, but I didn't see AS2016 R2 in Application Manager.
Can somebody send me a link for download?

Message 14 of 37
phliberato
in reply to: phliberato

I did the update! Thank you!

Message 15 of 37
ChristianBlei
in reply to: phliberato

hello

 

 

You are welcome!

 

You will find the update in your account. There are two updates to download, one about 500MB, the other about 7MB.

The link is:

https://manage.autodesk.com/cep/#products-services/updates

 

 

 

BR,

Christian Blei

Christian Blei
CBT Christian Blei Tools
christianblei.de
youtube.com/channel/UCxjA_NbeScQy9C0Z1xjwXpw
Message 16 of 37
manolic
in reply to: manolic
Message 17 of 37
ChristianBlei
in reply to: manolic

Hi Cosmin,

 

 

for me none of the hyperlinks is working.

Is it my problem or a general, would you please check?

 

 

br,

Christian Blei

Christian Blei
CBT Christian Blei Tools
christianblei.de
youtube.com/channel/UCxjA_NbeScQy9C0Z1xjwXpw
Message 19 of 37
Anonymous
in reply to: manolic

any Developer Training guide and Reference guide on AS2017 api? downloadable?

Message 20 of 37
Anonymous
in reply to: Anonymous

Here we are a year later, but I have to reask - any information on the 2017 API? Guide? Walkthroughs?

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

Post to forums  

Autodesk Design & Make Report