AutoCAD .NET :: Create Ribbon Control Combo Box With Directory List
May 5, 2011
I would like to create my own Ribbon Control for a custom cui with a combo box that fills in the appropriate directory of scripts.
I will also need a button to execute this script from my combo box that will pass (executescript"my script.scr")
I have Visual C# 2008 Express
I am just starting to look at C# code about how to start this process.
View 4 Replies
ADVERTISEMENT
Oct 30, 2012
Create a form with combo box that user can choose one option for the line notes, would be 15 lines with 15 combos, and if necessary the user should be ale to type something insted of using that pre defined option from combo.
I have 2 ideas to make that work, untill now im trying with this 1º but nothing yet.
First Idea:
Create some (15) boolean parameters to enable each line of this NOTE and when the user choose or type one option, that text go directly to one textbox into a Symbol with the 15 lines. I actually dont know how to make this connection, tried some stuffs that found here on forum, but some are too complex.
Second idea:
Instead of create parameters to control everything, i would create all the controls by iLogic, but that is harder then create many and many parameters ? And by this way, i dont know how to conect one INPUTLIST BOX with a pre defined Global form, or, is easier to create a form by ilogic (if that is even posible ofc) ? And still dont know how to make the connection with the chosen option and the text box.
That is just to "centralize" all my notes, that can be variable for each drawing, that way i dont need to have too much symbols for each kind of note, or even have to type everytime that i need one diffent. Would be nice if the user could just choose them in the right sequence he wants.
View 1 Replies
View Related
May 30, 2012
I'd like to understand to logic behind code "NaN" which controls the size of a combo box. I found 2 of those combo boxes with the same value but the onscreen size is different.
View 3 Replies
View Related
Jan 18, 2013
When creating Mtext, I can't figure out how to specify a given height using the ribbon. Clicking on the "A" on the "Home" tab brings up the "Text Editor" ribbon and displays the Mtext editor in the drawing area. On the "Style" panel of the Text Editor ribbon is a drop-down box with a default height of 1/8". Clicking on this drop-down box gives the list, 1/8", 1/4", 1'-6", 1/8", and 3/16". It appears those are my only choices, but I need to make Mtext that is 1'-0" high. If I try to highlight the size selected in the drop-down box and type in 1'-0", AutoCAD erases my typing, replacing it with the 1'-6" choice (or some other member of the preset list). It does this whether or not I have typed text in the Mtext editor, highlighted that text, etc.
If I hover the mouse over the drop-down box, a tooltip comes up that says "Ribbon Combo Box - Text Height / Press F1 for more help." Pressing F1 brings up the Autodesk Exchange window which is blank except for a spinning wheel animation in the center that never stops. The promised "help" never appears.
Right now my only workaround is to create Mtext using one of the heights that AutoCAD has chosen to make available, then select it and change its height using the Properties palette, which may or may not be so easy depending on whether the height I need is very different from the height I was forced to use and the zoom factor of my view (the created mtext might show up as an almost invisible dot, forcing me to play "Where's Waldo" to select it). This is an almost unusable kluge. How can I set the size when creating the Mtext, not afterwards? How is the list of sizes available in the drop-down box determined?
View 4 Replies
View Related
Oct 16, 2010
I preparing an addin written in VB.NET VS2008 which allows uses to do several different function depending on the type of document opened and the ribbon environment active.
I have add lots of different icons/buttons to execute simple runtime commands, but I wish to develop my code a little better.
I currently have code that when the button is pressed opens a form with a combo box. If the active file opened in the workspace is as Assembly Document, the combo box is populated with the colors from the Styles Library. Once the user selects a colour, the program then cycles through all of the parts in the assembly and changes the colour at the part level be that which the user has selected.
I would like to short cut around opening the form and maybe add a combo box definition directly to my custom panel that I have created in the "id_TabAssemble" Tab ribbon.
have a snippet of code which adds a combo box to a ribbon Tab panel and allows that combo box to populated with whatever the user desires.
People may say that this is already done with the colour combobox that is in the Quick Tool menu for assemblies, however this colour change is only at the view rep level and not at the part level, if the part is used again in a different assembly the colour will be the original colour.
View 6 Replies
View Related
Aug 3, 2011
My ACad2006 Layer Combo Control bar appears to be locked. It will only show the current layer and will not show the layer of an object that is selected with the pickbox. I must have accidentally made a change somehow, but don't know how to undo this.
View 2 Replies
View Related
May 14, 2013
I am unable to find the "Ribbon Combo Box - Workspace" to our 2013 MEP or ACA CUI. It is visible in vanilla AutoCAD 2013, but it isn't listed in the Command List (under Ribbon Control Elements). I am unable to transfer it from AutoCAD's cuix either. We typically have this control in our Quick Access Toolbar, but I am unable to create this same environment in the 2013 verticals.
I am unable to see it even using one of the default profiles, like "AutoCAD Architecture (US Imperial)".
View 2 Replies
View Related
Apr 14, 2006
1) I have a copy of a PSD file in which it has a combo box with a descriptive text embedded in it. Is there a tool in photoshop (like in MS Access, etc) that I can use to create the said button? I would like to replace the combo box with email address and password. Do I have to manually/use Photoshop to edit?
2) Since it is in PSD and have to convert it HTML later, any suggestion on how can I make the combo box functional after slicing the image in ImageReady.
View 2 Replies
View Related
Jun 9, 2009
I am finding the layer combo control in 2010 an annoyance. The drop down box does not access as many layers as did the version in 2009, and I find myself continually searching through the drop down box to reference a particular layer. How to rectify to have it similar to 2009?
View 9 Replies
View Related
Apr 26, 2012
I've created a new Panel in the cui....put some commands in it. It has a name and a display name.
i cant for the life of me find out how to make it (or any of the 100's of other panels) display
Right clicking the 'toolbar' area just gives me the usual options?
Architecture 2013 (if that matters)
nice of Autodesk to remove the Autocad classic then!
View 5 Replies
View Related
Dec 3, 2012
I want to put the list of open drawings (like the window tab on the menubar has) onto the ribbon? Is this possible?
View 2 Replies
View Related
Feb 22, 2012
how to create a nested drop down list in a ribbon panel.
is it even possible. It must be, but I don’t know how Autodesk managed to do it in the C3D.cuix for the create ground data panel, point drop down.
second question, where is the icon for a drop down list saved.
looking at a C3D dropdown list icon there is no path to the icon, but when I create one it shows a path.
View 3 Replies
View Related
Oct 31, 2011
I am creating a drawing controlled by ilogic. The assembly can vary in size considerably so I have set the IDW to change between sheet size A3 and A2 accordingly using ilogic. However, when the sheet size is changed, the parts list stays in a static position.
Currently, the parts list is situated in the top right corner up against the title block and the border. So when changing from Size A3 to Size A2, the parts list ends up in the middle of the page. Is there anyway i can control the position of the parts list so it changes with the sheet size change?
I know I could simply move the partslist to the bottom left corner, which is a work around. However, I'd like to be able to keep the drawings in line with the company standard.
View 1 Replies
View Related
May 7, 2012
this newbie question. I could not figure it out how to do this.
I found a sample project named RibbonSample in which by running a command, a new tab will be added to the ribbon.
I am trying to have that tab added upon loading the dll. So I added that command in the constructor of the dll, by "
SendStringToExecute" command. But the new tab did not show up. Then I added the method which creates the tab in the constructor, and I found the same thing. In both cases, when I type the command for creating the ribbon tab, a second tab, along with the first tab I added in the constructor, show up.
So I guess two possible options I have: first, find a way to make the new ribbon tab to be shown at first place, when the dll is loaded. Second, to find a way to postpone running a command added in the constructor of the dll, until the dll is loaded, so it can run like when I type it.
View 3 Replies
View Related
May 23, 2012
How to create a ribbon with a button. I am creating an add-in for Inventor. I am trying to put this code in the Activate Sub but it's not adding the ribbon once I open a drawing. Just trying to use this example to get me started.
public void AddParallelEnvironment(){ Application oApp = ThisApplication; // Get the Environments collection Environments oEnvironments = oApp.UserInterfaceManager.Environments; // Create a new environment Inventor.Environment oNewEnv = oEnvironments.Add("Some Analysis", "SomeAnalysis", null, null, null); // Get the ribbon associated with the assembly environment
[Code] ..........
View 1 Replies
View Related
Sep 14, 2012
How to create a custom ribbon with sketches cmd... I found example for assembly context... it work well but I don't find how to do that in sketch mode... The goal is to control the cmd the user can use.
View 3 Replies
View Related
Sep 3, 2013
I've followed a few examples and am able to create a new tab on the Ribbon, with panels and buttons, that appears when my DLL is loaded. However, it doesn't persist through workspace changes. I've read that this is due to my use of AdWindows.dll and my current code, as opposed to AcCui.dll, which would modify a CUIx file (that I don't know much about) to make persistent changes.
Here is a sample of my current code.
public class Commands : Autodesk.AutoCAD.Runtime.IExtensionApplication{public void Initialize(){Application.Idle += callback_Idle;}private void callback_Idle(Object sender, EventArgs e){CreateRibbon();Application.Idle -= callback_Idle;}private void CreateRibbon(){RibbonControl mainAcadRibbon = ComponentManager.Ribbon;if (mainAcadRibbon != null){RibbonTab rTab = mainAcadRibbon.FindTab("Tab Name");if (rTab != null){mainAcadRibbon.Tabs.Remove(rTab);}rTab = new RibbonTab();rTab.Title = [code].......
View 5 Replies
View Related
Nov 18, 2011
I am trying to create a ribbon cable between two connectors, but for some reason the ribbon cable starts away from the connector and I am not sure why?
View 4 Replies
View Related
Oct 12, 2012
I am looking to import an Inventor file and create views of it in AutoCAD 2013, However this is what appears under my Layout ribbon.
View 9 Replies
View Related
Aug 27, 2012
I am curious how the default workspace “3D Modeling” is able to combine ribbon panels from both the acad.cuix file and the modeldoc.cuix file in one tab. See attached screen shot to see where I highlighted the differences between the tab in the workspace and the tab in the acad.cuix file. I am trying to recreate this in my workspace without having two separate layout tabs.
View 2 Replies
View Related
Nov 23, 2010
How do I create a ribbon tab and button for my application, any sample code?
How do I interact the button click with my application?
View 9 Replies
View Related
Oct 15, 2011
send me a link to tutorial to create a new cutom tab panels in a ribbon 2011
View 1 Replies
View Related
Jan 17, 2012
I want a to create a tool button on the annotate tab of the ribbon. The button will toggle between having the 'display line weights' box (on the drawing tab of the application options dialog box) ticked or not ticked.
I have the settings set to display true line weights. (so i can visualize how the actual print will look, but need it off to be able to draft properly).
View 1 Replies
View Related
Nov 28, 2012
I am trying to customize Autocad 2012 ribbon tab. I can't seem to find how to mimic the small arrow that appears in several of the standard menus. For example, in the 3D Solids - Home Tab, the second panel from the left is "3D Solids Home - Mesh" It has a small arrow in the corner that opens up a preferences dialogue box.
How can I add that arrow to a custom panel with that little arrow so that I can add my command to it?
View 4 Replies
View Related
Feb 19, 2005
I want to create a mini ribbon that says "updated" on it. The ribbon should look alike a flag in the wind (3D).
Also, I want to know where can I download icons to use on my website?
View 3 Replies
View Related
Oct 20, 2013
Where is the 'Create tab' located as not on the Ribbon? I understand I need it to get to the Family Types dialog box.
View 3 Replies
View Related
Jan 24, 2013
Where are the bits of the Ribbon API to add a slide out to a ribbon panel?
Autodesk.Windows.RibbonControl ribbonControl = Autodesk.Windows.ComponentManager.Ribbon; RibbonTab Tab = new RibbonTab(); ribbonControl.Tabs.Add(Tab); // create Ribbon panels Autodesk.Windows.RibbonPanelSource panel1Panel = new RibbonPanelSource(); panel1Panel.Title = "Panel1"; RibbonPanel Panel1 = new RibbonPanel(); Panel1.Source = panel1Panel; Tab.Panels.Add(Panel1);
I saw some source that hinted you could use panel1Panel.AddSlideout() but in the search I do not see any Ribbon API that allows for any slideout functionality?Do you *have* to use the CUI API for this?
View 5 Replies
View Related
Feb 26, 2013
Is there a shortcut combo to bring up the drawing properties window? I want a quicker way to edit custom fields.
View 2 Replies
View Related
Mar 13, 2013
It could be interesting to activate a layer filter from a combobox (I'd like to have this combo into the layers panel) in order to have fast access to the layers beginning to this filter.
View 3 Replies
View Related
Mar 25, 2013
How to create area in to BOM List.Why Inventor 2013 can't do that?
View 9 Replies
View Related
Oct 9, 2013
Is it possible to create a drawing parts-list style from a built parts-list in the drawing?
View 4 Replies
View Related