.NET

.NET

Reply
Active Member
jparts
Posts: 10
Registered: ‎11-14-2011
Message 1 of 4 (349 Views)

Adding Properties Palette to a Custom Made Palette Set

349 Views, 3 Replies
02-02-2012 04:41 AM

Hi all,

 

Does anybody know if it is possible to add the Properties Palette to a custom made palette set in .NET? And how to do this?

 

Thanks!

ADN Support Specialist
augusto.goncalves
Posts: 390
Registered: ‎04-30-2009
Message 2 of 4 (345 Views)

Re: Adding Properties Palette to a Custom Made Palette Set

02-02-2012 05:18 AM in reply to: jparts

Hi,

 

So do you want to include the property pallete inside your custom pallete? Never saw it, altough you can implement a similar feature on your palette using the Selection Implied event.

 

If is the other way, take a look at http://through-the-interface.typepad.com/through_the_interface/2008/11/adding-custom-p.html

 

Regards,



Augusto Goncalves
Autodesk Developer Network
Active Member
jparts
Posts: 10
Registered: ‎11-14-2011
Message 3 of 4 (341 Views)

Re: Adding Properties Palette to a Custom Made Palette Set

02-02-2012 05:36 AM in reply to: augusto.goncalves

Hi,

 

Yes I want to add the properties palette to a custom palette set. I've managed to do the same for the calculator (found an example here: http://forums.autodesk.com/autodesk/attachments/autodesk/152/26712/1/CP205-2_Mike_Tuersley.pdf )

 

I'm using AutoCAD Mechanical 2012 x64 by the way.

 

The code for adding the calculator looks something like this: (I had to reference AcCalcUi.dll to the project)

 

'IMPORTS FOR ADDING CALCULATOR TO PALETTESET
Imports Autodesk.AutoCAD.CalculatorUI
Imports CalcDialogCreator


Public Class myCommands
  Friend Shared m_ps As PaletteSet = Nothing

 <CommandMethod("MarelPallette")> Public Sub MarelPallette()
    If m_ps = Nothing Then
      m_ps = New PaletteSet("Marel")
      m_ps.Add("BeamPlan", New uscBeamPlan)
      m_ps.Add("Building Provisions", New uscBuildingProvisions)

      'CODE FOR ADDING CALCULATOR TO PALETTESET
      Dim ucCalc As New System.Windows.Forms.UserControl
      ucCalc = New CalculatorControl.AcCalcCalcCtrl(ucCalc)
      m_ps.Add("Calculator", ucCalc)

    End If
    m_ps.Visible = True
  End Sub

 Now I was wondering if there is a similar option for adding the properties palette to my palette set.

 

Best Regards,

 

Joris

 

 

Active Member
jparts
Posts: 10
Registered: ‎11-14-2011
Message 4 of 4 (309 Views)

Re: Adding Properties Palette to a Custom Made Palette Set

02-07-2012 12:26 AM in reply to: jparts

Does anybody have an idea how to do this???

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.