AutoCAD .NET :: How To Run From Document Context

Jan 3, 2012

I am using the Application.Invoke() method on 2011+ and am finding it to not work well other than from the command line of a single document.

When I declare a Commandflag.Session flag for my command, and try calling Invoke using more than one parameter on a new drawing where the command was not run from, it bombs out.

So, Drawing1.dwg - Run command

A new Drawing2 is opened, saved, and Invoke called to run some LISP, it will fail.

I did read somewhere that Invoke() may need to be run from a Document context. Does that exclude the Session flag?

View 1 Replies


ADVERTISEMENT

AutoCAD .NET :: Add Context Menu For Objects

Jul 22, 2012

Can I add context menu from C# module to AutoCAD objects (for example - line). So, I want to create C# class library and load it from AutoCad by netload command. In code I want to add context menu.

View 7 Replies View Related

AutoCAD Civil 3D :: Using Navisworks In Context?

Aug 20, 2013

Using Navisworks for a Civils orientated project as opposed to a building/architectural project?

IDSP Premium 2014 (mainly Civil 3D 2014 UKIE SP1 & Infraworks with some limited 3ds Max Design)
Win 7 Pro x64, 256Gb SSD, 300Gb 15,000 rpm HDD
16Gb Ram Intel Xeon CPU E5-1607 0 @ 3.00GHz (4 CPUs), ~3.0GHz
NVIDIA Quadro 4000, Dual 27" Monitor, Dell T3600

View 2 Replies View Related

AutoCAD Inventor :: Broken Context Menu?

Feb 28, 2012

One of my users has been complaining that his "right click stops working".  I have verified the problem myself, and find it very odd. It seems to be exclusive to his machine, which is a Windows XP 32 bit, I think with 4GB RAM and a decent gaming graphics card running IV 2012. 

After he's been working about half of the day he suddenly is unable to right click and bring up his context menu.  He then has to save his work and reboot his machine.  After this he'll be good again for a few hours.

I asked him if he can bring up his context menu on other applications when IV's stops working.  He didn't know but said he would try it the next time he has the problem.

I also asked him if he's using a 3 gig switch.

View 3 Replies View Related

AutoCAD Inventor :: Context Menu Entry Using C#?

Apr 27, 2012

I'm trying to add to a right click menu for an Inventor addin using C#. I'm basing mine off of a VB sample. However, it appears VB allows the add command to be missing values, whereas C# will not allow any empty values.The 3 commas in a row are where the error occurs. C# error is simple "argument missing".

ControlDefinitions controlDefs = m_inventorApplication.CommandManager.ControlDefinitions; ButtonDefinition m_featureCountButtonDef = controlDefs.AddButtonDefinition("Add symbol", "symbolAddition", CommandTypesEnum.kQueryOnlyCmdType, "{DFJMQC00-938F-11E1-AFAA-.
[code]....

View 1 Replies View Related

AutoCAD Inventor :: Context Menu Gets Cut Off In 2012 SP2

Jun 11, 2012

Not only do I find the Marking Menu extremely annoying, but it's buggy as well.  It cuts off the context menu in certain zones of he screen - see attached.  If the object I right click on is low enough, it will bump the menu up.  The classic context menu works just fine.  I find this happening more than not when trying to suppress a part for a LOD.

View 9 Replies View Related

AutoCAD .NET :: How To Change Object From Context Menu

Aug 18, 2012

According to this [URL] article I tried to add context menu to my object:

ContextMenuExtension nodeContextMenu = new ContextMenuExtension();
.... 
Application.AddObjectContextMenuExtension(RXClass.GetClass(typeof(DBPoint)), nodeContextMenu);

Next, I found selected object:
private static ObjectId GetSelectedObject()
{
Document doc = Application.DocumentManager.MdiActiveDocument;
Editor ed = doc.Editor;
[Code] ........

Ok, I found it and tried to change properties of selected object:

using (Transactiontx = db.TransactionManager.StartTransaction())
{
DBPoint point = tx.GetObject(selectedObject, OpenMode.ForWrite) asDBPoint;

At this line Autocad has been crashed. This line works if I open object ForRead, but I can't open it ForWrite or call UpgradeOpen. Is it possible to change object from context menu?

View 3 Replies View Related

AutoCAD Architecture :: Right-click Context Menu Not Working?

Sep 23, 2013

I'm using Architecture 2012 and all of a sudden the right-click context menus are no longer specific to the selected objects.  If I pick a door/window tag, I no longer get the specific options to anchor it to a specific door/window.  This is typical of all objects now.  All that ever pops up is the basic context menu. 

View 3 Replies View Related

AutoCAD Inventor :: 2011 Context Menu Delay?

Nov 10, 2010

When I have an assembly open and I right click on a part, there is about a 4 to 5 second delay until I get the context menu. The second time that I right click on the same part, the menu comes up almost instantly.

Does not matter if it is a "large" or "small" assembly.  See the same lag.  Here is a link to a short video [URL]

I have tried using different projects files and disabled the "Quick File Open" in app options.  Neither made any difference.

Hardware setting set to "Performance".  Using nvidia driver 257.21 and running a GTS 250 card.  I have the advantage sub pack #2 installed.

View 4 Replies View Related

AutoCad :: How To Control Automatic Appearance Of Context Menu

Nov 23, 2011

I´d like to know whether there is a way to control the automatic appearance of this context menu

Vertex with context.jpg

I could not understand the rules behind whether the menu shows up or not, when you put the cursor onto a vertex

I use AutoCad 2011 for Mac

View 0 Replies View Related

AutoCAD Inventor :: Context Menu Is Not Available When right Clicking

Feb 22, 2012

I have a patterned extrusion in a part. I need to supress the first occurrence in this pattern but the option to do so in the context menu is not available when right clicking the 1st occurence  The remaining occurrences are suppressible. Is this normal behavior when patterning in a part file?

View 2 Replies View Related

AutoCad :: Extending Context Menu Of Layer Group?

Jan 7, 2013

extend the context menu of "Layer Group". We have a "save" option for single layer but i want the same for layer group

View 1 Replies View Related

AutoCad :: Control Automatic Appearance Of Context Menu?

Nov 28, 2011

I´d like to know whether there is a way to control the automatic appearence of this context menu

Vertex with context.jpg

I could not understand the rules behind whether the menu shows up or not, when you put the cursor onto a vertex

I use AutoCad 2011 for Mac

View 2 Replies View Related

AutoCAD Inventor :: Identifying Assembly Context Required Saves

Feb 7, 2013

I'm running into issues with some skeleton parts (with the BOMStructure type of "kPhantomBOMStructure"). When these files are manually opened up by themselves and saved, I get an error stating that "<filename> can only be saved in the context of another document which is not currently in memory".

I've seen other people with this problem in the regular Inventor discussion group ("cannot save changes", "save error"), but with no real solution.

What I'd like to be able to do is find out through the APIs which file this needs to be saved with. I'm worried that I wont be able to get this information since Inventor itself won't tell me.

View 1 Replies View Related

AutoCAD Inventor :: Possible To Nest Popup Buttons On Context Menu

Jan 16, 2013

Can I create popup button control underneath another pop button control?

I can do this with .net controls, but I can't seem to get this to work with Inventor.  Whenever I try to add a command bar to another command bar.Controls I get an Invalid Parameter error.

Here is what I am referring to. I would like to be able to add a menu below a menu.

View 3 Replies View Related

AutoCAD Inventor :: Browser Context Menu Is Not In Correct Location

Sep 29, 2009

I have dual monitors. I have my Inventor on the left hand screen. When I click on the drop-down in the model browser, the menu which should appear on under the drop-down arrow appears on the right monitor. Pretty frustrating to have to move the pointer all the way across the screen to click the menu.

I have tried resetting the menus, toggling the model browser on/off. Nothing changes.

View 4 Replies View Related

AutoCAD Inventor :: Sketch Visibility Whilst Editing In Context

Jul 2, 2013

Why, when I edit a sketch in context of another assembly do sketches of other parts suddenly become visible?.

Autodesk Inventor 2013-64Bit Edition
Intel Xeon W3520 @ 2.67GHz
Win 7 Pro
6.7 System Rating
NVIDIA Quadro FX 1800

View 7 Replies View Related

AutoCAD 2010 :: XRef Context Sensitive Menu Not Showing Up

Feb 17, 2012

We have a drawing with an xRef in model space and it is exposed through a paperspace viewport.

While in PS, we activate the viewport so that we can then select the xRef and with that done, we right-click on the mouse and now we have the issue.

On all computers but one, we see the pop-up menu on the left of the attached pic, but on that one computer we see the menu on the right. The difference is marked off in red and as you can see, the section with the xRef options is missing for that one guy. Why?

We are all using the same enterprise customization file and each user has their own main customization file. I have checked his main customization file and don't see anything that would be causing this.

View 9 Replies View Related

AutoCAD Inventor :: VBA - Adding Custom Command To Context Menu?

Jul 18, 2012

How can I add custom command (macro) to a context menu in Inventor 2010 via VBA?

(I searched the forum and got it to the point when I'm able to add commands that are built in Inventor)

View 1 Replies View Related

AutoCAD 2013 :: Insert New Tool Icon On Image Context Ribbon?

Mar 26, 2013

I'd like  to insert an adjust image tool on image context ribbon.

Civil 3D (2013)

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: 2014 And Keyboard Context Menu Key

May 17, 2013

Switching from 2010 win xp to 2014 win 7. I need my specific user interface  , and cant replicate it because of this issue  :

I used to press context menu key on keybard to make edit menus pop up . In 2014 even though its same settings  (show context menus and time sentive click)  i ve lost this ability .

Either menus dont appear at all or they are replaced by the small command line context menu. I think this suggest new command line features are messing with right click options any variable i can turn off , or else to go back to normal.

View 1 Replies View Related

AutoCAD Inventor :: Why Dimension Visibility Grayed Out In Sketch Context Menu

Jan 11, 2012

Why is dimension visibility grayed out in the sketch context menu shown in the attached image?

View 3 Replies View Related

AutoCAD Inventor :: Right Click On Component Not Bringing Up Specific Context Menu

Jun 3, 2013

I select a component in my assembly, right click to get the context menu, and suddenly my component is no longer selected.  I get the generic context menu.  I have to select the part from the model tree to get the specific context menu.  What did I turn on... or off to get this annoying behavior?  Who did I anger... I've been good, I promise!

AutoCAD 2013; AuoCAD Electrical 2013; IV 2013 Professional: Tube and Pipe, Frame Generator, Content Center; Vault Professional 2013: Client, ECO

Win 7 x64, Dell Precision T7500, Intel(R) Xeon(R) CPU X5677@3.47GHz, 12 GB RAM; GeForce GTX580; 3DConnexion Space Explorer, Evoluent Vertical Mouse 3.

[URL]

View 4 Replies View Related

AutoCAD .NET :: Adding A Document To Document Manager Collection

Jul 30, 2013

The code below crashes with an "attempt to write to protected memory"  in debug mode (it crashes when it hits acDocMgr.add)but in the Release version it works fine. I am using Command Flags.Session

Dim acDocMgr As DocumentCollection = Application.DocumentManager Dim pStyle As Integer = Autodesk.AutoCAD.ApplicationServices.Application.GetSystemVariable("PSTYLEMODE") Dim acDoc As Document = Nothing If pStyle = 1 Then    acDoc = acDocMgr.Add("acad.dwt") Else acDoc = acDocMgr.Add("acad -Named Plot Styles.dwt") End If

View 7 Replies View Related

AutoCAD Inventor :: How To Get Model-document Name For Drawing-document

Feb 11, 2013

I tried to print thisdrawing.modeldocument in a vba sub, but it doesn't work.

View 4 Replies View Related

AutoCAD 2010 :: Mouse Selects Wrong Item On Object Snap Context Menu

Feb 21, 2012

For as long as I can remember, across all versions of Autocad, I've had problems picking the right item on the popup menu for object snap (shift-right click).  It frequently picks the item below the intended one, i.e. it will pick Parallel rather than Perpendicular.  Trying a second time works every time.  This problem has been so consistent that I don't believe it is user error.  The item is highlighted, after all.  There is no way I'm repeatedly missing it.  Is it possible to calibrate the mouse in Autocad?

View 9 Replies View Related

AutoDesk Smoke :: Where To Set Context

Jun 27, 2012

Where do you set context in batch in the 2013 prerelease?

View 9 Replies View Related

Photoshop :: CS5 Not In (open With) Context Menu

Apr 14, 2012

I recently got version CS5 [12.1] of photoshop, installed 64 bit version of it. But the "open with " in right click context menu doesn't show photoshop among the listed programs. i tried reinstalling it but the problem is still there.I did 'Choose default program and navigated to the Photoshop .exe for the 64bit version. (Default path is C:Program Files, Adobe.....) but photoshop doesn't come. nothing happens, the list of programs remains the same.

View 2 Replies View Related

Photoshop :: Can I Disable The Right-click Context...

Mar 3, 2008

I'd like to not have anything pop-up when I right-click the mouse over an image (it's specifically the brush one that is bugging me). Can Photoshop (CS2, running under VISTA) do this? I've dug through the help and such and can't find anything.

View 4 Replies View Related

AutoDesk Smoke :: More Intuitive To Set Context

Nov 30, 2012

When i RMB in cfx , i have 'set context'. How to set context by manually select 1 or 2 ? i don't feel to have full control on this function. Why don't the RMB give the 'set context 1' and 'set context 2' ??? i have problem to set the context index, for example if there's already a C1 in my schematic then the next set context will put me on C2. If i want it to be C1, then i have to find first where the C1 is, then turn it off, then i can use slot1 (C1). Is there anyway i can straight to set whether i want the context to be 1 or 2 ? again it should be easily design into contextual (RMB) menu by put both option there.

View 4 Replies View Related

Photoshop :: Add Item To Layer Context Menu?

Oct 10, 2013

I have developed a script that act on the layers individually so it would be great if I could add a new command in the layer context menu (the one that has Blending Options..., Duplicate and Delete Group, Copy,Paste and Clear Style and add or remove colors from the "eye" icon, etc...
 
I know that you can add the script to File/Scripts submenu but if I had access to it directly from that context menu, it would be much better. I have seen a script that adds a new top menu item to the menu bar of the ESTK so I am hopeful it can be done something similar in PS.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved