Author Topic: Public wrapping for 'Internal' SDK namespaces  (Read 2365 times)

0 Members and 1 Guest are viewing this topic.

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2070
  • class keyThumper<T>:ILazy<T>
Public wrapping for 'Internal' SDK namespaces
« on: August 14, 2023, 08:48:24 PM »
Does anyone have any wishlists for making Classes/Methods  that are currently in 'Internal' namespaces public and officially fit for consumption. ??

Any requests will be passed on, but no promises regarding action.

Regards,
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00


some people complain about loading the dishwasher

Sometimes the question is more important than the answer.

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2070
  • class keyThumper<T>:ILazy<T>
Re: Public wrapping for 'Internal' SDK namespaces
« Reply #1 on: August 14, 2023, 08:49:01 PM »
Does anyone have any wishlists for making Classes/Methods  that are currently in 'Internal' namespaces public and officially fit for consumption. ??

Any requests will be passed on, but no promises regarding action.

Regards,

All ? , but seriously . . .
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00


some people complain about loading the dishwasher

Sometimes the question is more important than the answer.

BlackBox

  • King Gator
  • Posts: 3769
"How we think determines what we do, and what we do determines what we get."

Hanauer

  • Mosquito
  • Posts: 10
Re: Public wrapping for 'Internal' SDK namespaces
« Reply #3 on: August 23, 2023, 07:43:24 AM »
I have avoided using Autodesk.AutoCAD.Internal as much as possible since you never know if it will still be available in future updates, but there are situations where there are no alternatives, such as the case of AcAeUtilities.IsInBlockEditor() and AcAeUtilities.GetBlockName().
What I have seen most used:
Autodesk.AutoCAD.Internal.Utils.EntLast()
Autodesk.AutoCAD.Internal.Utils.WcMatch(string, string)
Autodesk.AutoCAD.Internal.Utils.SetFocusToDwgView()
Autodesk.AutoCAD.Internal.Utils.PostCommandPrompt()
Autodesk.AutoCAD.Internal.Utils.GetBlockImage()
Autodesk.AutoCAD.Internal.Utils.VpMaxCommand()
Autodesk.AutoCAD.Internal.AcAeUtilities.IsInBlockEditor()
Autodesk.AutoCAD.Internal.AcAeUtilities.GetBlockName()
« Last Edit: August 23, 2023, 07:48:37 AM by Hanauer »

BlackBox

  • King Gator
  • Posts: 3769
Re: Public wrapping for 'Internal' SDK namespaces
« Reply #4 on: August 23, 2023, 09:50:18 AM »
Those are good ones.

Don't recall when, but sometime after Core Console was introduced, I know that Autodesk.AutoCAD.Internal.Utils.WcMatch() was moved to Autodesk.AutoCAD.Internal.CoreUtils.WcMatch().


Autodesk also deprecated Autodesk.AutoCAD.Internal.Utils.GetAcadResourceIcon(), when they should have enhanced it - originally it searched Acad CUI for resource icons only, and completely ignored vertical-specific icons, so I ended up having to write an extension method that iterates whatever Main & Enterprise CUI were, but don't think I ever finished it to also iterate any attached partials - would love it if Autodesk would do so in ARX.
"How we think determines what we do, and what we do determines what we get."

Jeff_M

  • King Gator
  • Posts: 4078
  • C3D user & customizer
Re: Public wrapping for 'Internal' SDK namespaces
« Reply #5 on: August 23, 2023, 11:27:09 AM »
Autodesk.AutoCAD.Internal.ObjectContexts : for adding Annotative scale to Objects
Autodesk.AutoCAD.Internal.RegenEntity()
Autodesk.AutoCAD.Internal.GetCommandAtLevelForDocument() : useful when creating a Transparent command, can notify user it must be called from within a running command.

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2070
  • class keyThumper<T>:ILazy<T>
Re: Public wrapping for 'Internal' SDK namespaces
« Reply #6 on: August 23, 2023, 10:16:49 PM »
Thanks guys.
Passed them on.

//=======

Any more from anyone ??
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00


some people complain about loading the dishwasher

Sometimes the question is more important than the answer.