AutoCAD .NET :: Ribbon Freezes With Custom WPF Objects?
Feb 21, 2013
I've been developing a way for our drafters to properly use a layer scheme. I implemented this by using a background database defined in Excel and loading this on startup. The interface is provided by custom ribbon elements as described in Fenton Webb's "UI Design featuring WPF" (autodesk university, 2009).
The ribbon contains the following custom elements:
- two series of radioboxes which are stripped of the default WPF multithreading
- a dropdown which monitors and manipulates LTSCALE
- a dropdown which selects values from the background database.
- a UserControl which displays information from the background database about the current layer
All this has worked fine on multiple (about eight) computers with AutoCAD 2010 and 2012, vanilla and Map 3D. Now for two users, the workspace randomly freezes up. The freeze is just visually, commands are still executed and it is still possible to switch to a workspace without my ribbon in it, but my ribbon just stays on the foreground. This freeze happens when the user interacts with any part of the ribbon: switching tab, clicking buttons, etcetera.
The only way to resolve this problem so far is as following:
- Switch to another workspace without my custom ribbon tab
- Restart AutoCAD
- Switch back to the original workspace, everything works now
Directly restarting AutoCAD just results in another frozen interface.
I have been using AutoCAD 2006. Our company is switching to AutoCAD 2012 LT. I want to be able to add my custom toolbar buttons from the 2006 to the 2012 LT custom Ribbon Tabs & Panels. I have figured out how to make the custom ribbon, tab and panel. I just haven’t figured out what I need to do to get the old stuff to where I can add them to the panels.
I have custom 2006 buttons with and without flyouts.
I am having PDS Ultimate 2012 and working on inventor. when i open a file or open a new template ribbon freezes means menu bar doesn't work properly,if i change the ribbon appearance it doesn't update also i cannot switch between the menu bar tabs and if i turn on the visibility of the datum planes it doesn't show on the screen.But when i refresh the windows everything works sometimes. i have installed SP1 and even repaired inventor.
System Config:
OS Name Microsoft Windows 7 Professional System Manufacturer LENOVO System Model 20079 System Type x64-based PC Processor Intel(R) Core(TM) i3-2350M CPU @ 2.30GHz, 2300 Mhz, 2 Core(s), 4 Logical Processor(s) Name AMD Radeon HD 6370M Adapter Type ATI display adapter (0x68E4), ATI Technologies Inc. compatible Adapter Description AMD Radeon HD 6370M Adapter RAM 1.00 GB
If you make alterations to a model, and then switch to vault menu, your model is red with an asterix (requires saving). If you click check in on this, you get the message that it needs saving, click ok. It appears that it has worked but all the buttons on the toolbar are frozen. if you click the big I all the ribbon greys out and you need to restart Inventor. The only button that still works is Suite Workflows.
I have SP1.1 installed as well as the vault hot fix.
I am new in the autodesk customization, I have autocad 2013 and visual studio 2010..I am interested in make a custom ribbon tab, where I can put a button.
I have found some (incomplete) samples to implement a custom ribbon tab, but I dont know how to "insert" my tab into autocad 2013, and how must I load my tab? with a command? or it can load automatically?
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.
I created a Net dll plugin and successfully loaded in Civil 3d 2014 with NetLoad command, the plugin contains a ribbon bar with a ribbon button launching a dialog.., but when To be Loaded automatically (by AutoLoader) at startup it did'nt load, is there any way to make it load automatically at Civil 3d start up
I have made a 2012 LT custom ribbon and a custom panel. I have transferred buttons from my autocad 2006 to my 2012 LT. They work just fine. The probem is that in 2006 I had drop down buttons to save toolbar space. I want to be able to add the drop down button feature to my new panel. I do not see how to create that type of button, so I can add the regular buttons to it and have one drop down button with those commands in it.
I have tried everything even un-installing and re-installing. I have customized programs that have been working properly for months by many individuals. These include custom menus, toolbars and ribbon tabs. One day last week one of the ribbon tabs disappeared. The crazy thing is if I load the .cuix file as an Enterprise cui, everything is visible and works just fine. BUT, when I load it as a partial cuix file the ribbon tab does not show up. The custom menus come in, my custom toolbars work and show up just fine but the dag blasted ribbon tab won't show up.
Yes, it's marked as visible. I've done and redone the cui editor, customized my workspace again and again checking every piece of information. I need to have it loaded as a partial cui file as I am the author of these tools that hundreds of people in my company depend on.
How to add buttons and create my own ribbon in AutoCAD, but now I would like to be able to have buttons for two different schedules that I have created. While I can have a button start the schedule command it won't automatically pick the schedule that I want it to create.
I'm trying to find a way to add a custom button to my ribbon that will launch a global rule or form using VB. I know of a way using VBA but I want to get away from VBA. I'd much rather create an add with VB and use that.
I am running Illustrator CS5 on a brand new quad-core MacBook Pro. When I'm working in an Illustrator file, every time I click on a different object the program freezes for a good 5 seconds (which adds up really quickly and is really annoying.) I first noticed this in a large illustrator file with a lot of different elements, but I was testing it out and it still happens when I have a new document with only two circles in it. One of the circles is selected and I click on the other circle and the program freezes.
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?
Is there any (non programming) solution where I can add custom data/properties to objects in plain AutoCAD?
(I know I can in Civil 3D though, using Notes/Extended Properties etc etc)
We want to allow users to add their own unique ID to all their drawn objects, and we don't want to use Entity Handle as that is not anything we can choose ;-)
We're using that ID to connect other datasources (ODBC) to Navisworks and we would like it to work even from AutoCAD, even though we have Civil 3D inhouse.
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?
Is it possible to add a custom object such as soil reinforcement to C3D? I have a roadway grading plan with cut/fill slopes that will require geosynthetic reinforcement. Is it possible to add reinforcement to the drawing and have C3D calculate quantities?
I'd like to make multiple copies of a .jpg I've made rain down from the top of the screen, ad-infinitum. Like, imagine small cat's heads raining down from the top of the screen.
I have foggy memories of an effect where I can just replace the default object with my own, but am having no luck finding it.
Is there any way to set keyboard shortcut or toolbar button to customized find objects option (.fin file)? I am a average Coreldraw user, knows almost all basics, but lacks advanced use of Coreldraw. I like to use any techniques that saves time. I know it with adobe Photoshop (like action etc.) but not with Coreldraw.. I heard about macros.
For Now I need to
1) set keyboard shortcut or toolbar button to customized find objects option (.fin file)
2) set keyboard shortcut or toolbar button or macros for repetitive find & replace options...
3) create macros for simple moves & then after combine these type of simple macros in one macros...
4) set keyboard shortcut or toolbar button to that macros...
5) and any these type of time saving technique. (in selection making, replacing, finding, batch process etc..)
I want is make actions & then combine them to script & then set keyboard shortcuts for same...
When inserting a content center part for which we have to choose a material, we would like to have a custom material as a default (material with name: "No material selected"). So when selecting no material for this part (for example when the user forgets to select a specific material), the default material (in this case material "No material selected") will be active. In this way, we can see in one view across the BOM which parts have no material assigned yet.
How can this be achieved in the content center (editor)?
Product Design Suite 2014 Inventor 2014, Vault 2014 HP Workstation Z220 Intel Xeon 3.4GHz 16GB RAM Nvidia Quadro 4000 Windows 7 Professional (64bit)
When using Inventor with Vault, we have a problem when categorizing custom content center parts in Vault. In short, custom content center parts are incorrectly categorized as "Content Center" and automatically released - as there is no property that we can use to identify these files.
I need iLogic code to trigger when custom content center files are created/saved, wich adds the following custom iproperty "IsCustomContentCenter=True".
When I drag a previous custom command into an existing custom tool bar and edit the custom command (then rename the command in the Name and Command Name) it also changes the previous custom command that I originally drug into the toolbar. What am I doing wrong?
I am trying to create custom Materials in Inventor 2013. I have been able to create the custom appearances I want use on the materials and store them in the Inventor Materials Library.
After creating the custom appearance, Ive created new materials. When I try to change to new material appearance from default to my custom appearance, upon hitting the 'apply' button I get an error message which reads, 'failed to updated style'.
We are a firm using ACAD 2011 w/ a custom toolbar that has an Auto Purge "tool" it currently deletes duplicated layers, reg ops, duped scales etc. we are wondering what else it can do (or any other tools that may be of use) or how can we get it to do more for us, like restrict referencing files from "unwanted" locations and any other tools that are essential to reducing the size of a drawing so its now so slow
I am very much new to AutoCad, but have learned quite a bit about it in the last few days. As a part of the learning I have been building a 3D model of the shed my dad is building. But I ran into a problem on the roof and cant seem to figure out how to click everything into place.
My problem: I need to keep the size and shape of all objects while also connecting the objects to the main structure. I need to keep A and B connected to the main structure and adjust the angles so that both meet at C. But if I move one then another moves out of place. (In the pic B is out of place) All I want to do is hold the beams at A and B in their spot while adjusting the rotation on both beams to meet at C all at the same time. I have tried to fine adjust the rotation on the beams individually but still cant get them together. I cant seem to get the constraints feature to work, because I guess it only works in 2D. I have tried to use the align tool but it just throws everything haywire.
I have several .dwg files that I use as templates. I run find and replace VBA routines on the template .dwg files, ie find $Flavor$ and replace it with "Grape", and then I save the .dwg to another directory with a new name.
These VBA routines work well for acdbText and acdbMText objects, but I have a bunch of AcdbAttributeDefinition objects in the .dwg templates as well.
After much research about the AutoCAD object model (I'm mostly a Microsoft Access VBA programmer), I have come to understand that these AcdbAttributeDefinition objects are actually "remnants" of a block that no longer exists in the drawing.
Anyway, I'd like to convert all of these orphaned AcdbAttributeDefinition objects to acdbText objects in the templates and then delete the AcdbAttributeDefinition objects. I have some code that does just that.
However, the issue that I am having with the code is that the newly created acdbText objects are not on the same layer that the original AcdbAttributeDefinition objects were on. I don't know the syntax to identify what layer the AcdbAttributeDefinition object is on or how to specify what layer on which the acdbText object is created.
how to keep the acdbText objects on the same layers as the original AcdbAttributeDefinition objects during the conversion and deletion process?
Here is the code I am using currently:
Sub AttConvert(dwg as string)Dim oDocument as AcadDocumentDim ent as AcadEntityDim aa as objectset oDocument = Documents.open(dwg) For Each ent In oDocument.ModelSpace If ent.ObjectName = "AcDbAttributeDefinition" Then' DO SOMETHING TO IDENTIFY WHAT LAYER THE ACDBATTRIBUTEDEFINITION OBJECT IS ON ' DO SOMETHING TO SPECIFY THAT THAT IS THE LAYER TO CREATE THE ACDBTEXT OBJECT ON Set aa = ThisDrawing.ModelSpace.AddText(ent.TagString, ent.InsertionPoint, ent.Height) End If Next ent For Each ent In ThisDrawing.ModelSpace If ent.ObjectName = "AcDbAttributeDefinition" Then ent.Delete End If Next ent End Sub