Hello Everyone,
New Advance Steel .NET API walkthroughs are now available here
And where is here?
BR, Christian Blei
http://help.autodesk.com/view/ADSTPR/2016/ENU/?guid=GUID-15154F08-0BE8-4547-B94A-ACA8D284E219 @ChristianBlei
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
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);
Hello,
what about
Dim tObJId As New DatabaseServices.ObjectId(id.OldIdPtr)?
BR,
Christian Blei
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
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
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
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
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.
Hello Cosmin,
I will immediately install the AS2016 R2.....
and the update did it.
BR,
Christian
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?
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
I am happy to announce that new walkthroughs are available:
Building Structure Element
http://help.autodesk.com/view/ADSTPR/2016/ENU/?guid=GUID-6A51525C-DB79-4661-A0F3-AE9B6F045675
Settings
http://help.autodesk.com/view/ADSTPR/2016/ENU/?guid=GUID-E0992D28-D963-463F-948D-C72D31261FC3
Miscellaneous Objects:
http://help.autodesk.com/view/ADSTPR/2016/ENU/?guid=GUID-40095645-4550-4498-9573-A0FA66E7511B
Joints
http://help.autodesk.com/view/ADSTPR/2016/ENU/?guid=GUID-5CA79054-7065-40E8-8DC7-7187B5E1A643
Hi Cosmin,
for me none of the hyperlinks is working.
Is it my problem or a general, would you please check?
br,
Christian Blei
Thank you @ChristianBlei. Here are the correct links:
Building Structure Element
http://help.autodesk.com/view/ADSTPR/2016/ENU/?guid=GUID-6A51525C-DB79-4661-A0F3-AE9B6F045675
Settings
http://help.autodesk.com/view/ADSTPR/2016/ENU/?guid=GUID-E0992D28-D963-463F-948D-C72D31261FC3
Miscellaneous Objects:
http://help.autodesk.com/view/ADSTPR/2016/ENU/?guid=GUID-40095645-4550-4498-9573-A0FA66E7511B
Joints
http://help.autodesk.com/view/ADSTPR/2016/ENU/?guid=GUID-5CA79054-7065-40E8-8DC7-7187B5E1A643
Can't find what you're looking for? Ask the community or share your knowledge.