AutoCAD .NET :: Simulate CommandFlags.Session From Form Button
May 10, 2012
I am working on an application that uses map to query data, then saves the data to a file, and repeat. It works flawlessly when I use a commandmethod with commandflags.session, But, when I try to run the same code from a form button, I get "drawing is busy". The command from the form button ignores the commandmethod and the commandflags. I am guessing that "sendstringtoexecute" would work, but I would prefer to not do it that way.
What am I missing? Is there another way to lock the session?
One of the features I was really looking forward to in CS6 was creating fillable forms with ONE application. I created a form following the step by step instructions in classroom in a book for CS6. When I opened the exported form in Reader X, I get a "This operation is not permitted" error. I opened the completed "end" document in the lesson to make sure I didn't commit an error, and I got the same message when exporting. I have looked for places in menus to modify security restrictions and I can't find any. I installed the updates and that didn't solve the issue.
I saw one solution posted which is to open the document in Acrobat, then do a "save as" option. Is there anything we can do that doesn't involve buying additional software? If this is not the case, then Adobe seriously needs to change its training and advertising about this functionality.
I'm currently attempted to simulate a piece of clothing, however, everytime I hit the simulate button it straight up disappears without warning and it's gone until I "Reset" its state again. I don't know what to do. It's currently set up at default settings with a plane as the collision and the piece of clothing as the cloth.
I got a problem to open a dxf file. If I use command method then I can easily do that. But I want to open that file by clicking a button from my windows form. I did the coding for that specified button like below:
Private Sub Button6_Click(sender As System.Object, e As System.EventArgs) Handles Button6.Click Dim strFileName AsString LoadDXF.InitialDirectory = "C:" LoadDXF.Title = "Open DXF File"
[Code] ......
After invoke that button I got a error like below:
How can I open the drawing without commandFlags.session? I want to use the button of my form to open that dxf file.
I am working on a form (global) and have added a picture with a parameter and a picture folder underneath. So that the picture displayed on my form will change depending on the parameter value.Here comes the trick. Only text parameters can be used!On the form editor only 'Text parameter' can be selected to drive the picture selection. I actually need an integer, so that i can use my User/Excel parameters from Inventor.
I can work this around with an iLogic rule to equal the value of my string Picture Parameter with the relevant integer Inventor parameter, but the rules need to be run before the pic and the form updates (by pressing the 'Apply' button at the bottom of the form and then the assy updates too. So this takes a couple of minutes)... whereas if it was an option on the form editor then the update would be instant without waiting for everything to update...
Is there a particular reason why the Picture Parameter only can be a text parameter?
Using Inventor 2013. As you know it's impossible to chang iproperties values of the library parts in inventor session (for instance in asm file). The error message comes "readonly".
But when you open iproperties of the file in windows file explorer then it's possible to change iproperties values while library parts open in inventor session in asm.
Normally I copy the file location path of the library part and open this path in the windows file explorer and find the part and right-click on file and change iproperties values which I want to change stock number, part description etc...
Is it possible to create VBA code or API which can open iproperties box of the selectet part outside of the inventor session in windows file explorer?
Randomly, a few times a week, I get an error in AutoCAD LT 2012 when trying to save a dwg file. It says
"Unable to save to drawing {filename} as it is being accessed by another session. Drawing saved to {filename}.tmp." The file then turns into Read Only and says
"Drawing file is write protected."
We have to do a Save As to a different filename in order to regain functionality.
Every time I open a new drawing a new Inventor session starts up and the drawing is opened in there. It's ok if I go through file-open etc in a current Inventor session but I don't want to open drawings like that all the time. If I open 5 drawings at once they start up in 5 seperate Inventor sessions! I can't seem to find an option to change this, is it an inventor problem or windows?
I am running AutoCAD 2006 LT and AutoCAD 2010 on one computer and have the SDI set correctly. When I open multiple files from Windows Explorer, it opens multiple AutoCAD sessions. How to avoid this from happening?
When running VS 2010 express in debug mode, for either AutoCAD 2010 or 2012, 64 bit, AutoCAD gets slower and slower loading with each subsequent debug session until it becomes intolerable. A system restart is necessary. Is this normal? I see this on a fast machine with tons of ram. During the waits there are patches of white screen in the various AutoCAD interface components. The performance hit is exponential with each session. The first debug is normal, The second is slightly slower. The third is noticeably slower and so on.
I have a file where I can't save, because it says its being accessed by another session. The problem is no one has it open. I did a save as and tried changing the name of the original file or move the file with no luck. I need to keep the file name for purpose of company file structure.
How to set the drawing file path so it shows up at the top of my screen when I am in an autocad session? Currently all I see is "Autocad Civil 3D".......
We are seeing some issues with some users regarding what looks like a timeout in licensing?Basically our users are opening drawings, making amendments and trying to save, however, when the user or users try to save the drawing. It will state that the drawing is being accessed by another session.
We have removed all instances of the DWL's to see if we can resave but the only option we can use is to save them as *.tmp files.I do know that we have replaced the server in the office that is now experiencing this problem, previously they weren't having any issues.
Any good place to start looking into this as it seems there are too many things to consider and we would like to pinpoint the issue sooner rather than later..I want to be able to quickly identify if AutoCAD is at fault or the server.
Dev env: AutoCAD 2012, VS 2010, ObjectARX.Net 2012
A simple windows form command dll to test within the VS2012 + AutoCAD 2012
Bug: when debugging with VS2012, the first command runs fine and I can debug it with breakpoints etc etc. However, after the first debugging session, if I try "File"->"Open" or "New", file dialog will popup and then my AutoCAD 2012 crashs.
It won't happen if I compiled the dll, and load directly from AutoCAD independantly running instance.
I am growing increasinly frustrated. I just installed AutoCAD LT 2013 on my laptop. I managed to get everything customized the way I want, except the button icons on my (classic) toolbar are much too small. If I go into the menu and select 'use large icons', they are too huge. My screen resolution DOES NOT need to be changed or adjusted. I went to the help menu to see what I can do, and found that I can go into CUI and adjust the size of the button icons that way, via the button image editor, however there is no 'button image editor' dialog box when I select any given toolbar command.
I would like to be able to save my session in Photoshop much like I can with the workspace.
With a session manager, I will be able to save and load all the open canvases in one go.
So, for instance, if I wanted to continue my work next time I open Photoshop, I will be able to load the previous session -- this will open all the canvas windows and their exact placement in the main Photoshop window.
How can I accomplish this? Are the scripts advanced enough to implement new menu's and trigger such actions (maybe I am being too hopeful, here)?
With functionality, an intuitive design, and ease of use being some of the top priorities in applications these days, I am hopeful that Adobe can at least implement this next time around.
Perhaps I am just missing the option? Is such a feature available?
How to apply forces to a component who is spinning. More specific i am interested in the centrifugal loads distributed over the component.
Take an inducer wheel for a turbocharger. It is a complicated component and very difficult to calculate by hand. it is spinning with high revs, and the rev limit it set by the centrifugal forces acting.
Is is possible to simulate a part with a crack in inventor 2013? A customer had a part made and noticed there was a crack. We were asked to run an analysis on the crack to determine how much of a factor this crack has on the part. Is it simply just a matter of sketching the shape of the crack and removal of material or ??? The part is cylindrical in shape and the crack goes approximately 1/8 around the diameter of the part.
I am wondering if the FEA in Inventor 2013 is capable of simulating a pipe under a point load and at what point the pipe fails. Its a simple 2in dia pipe supported by a vertical tube with a load of 'X' centered on the pipe.
I'm trying to simulate a sprag clutch using Autodesk Inventor Professional 2011 (student edition) but I'm having some trouble keeping two parts from rotating together.
The flange of the driving gear sits inside the clutch hub but the two should be free to rotate relative to each other. However, when I simulate the rotation of the gear, the clutch rotates with it as well. I can sort of simulate the desired behavior by adding a torque to the clutch but I don't think this should be necessary.
I can't attach the files because they're too large but I'm hosting them here: [URL]...... and here: [URL]........... The A4_Complete is the whole clutch, but for a simpler view A3 shows the issue I'm having.
Essentially Pink gear drives the Green gear, and the Orange clutch should slip on the grey flange of the green gear but it does not.
Is it possible to validate/simulate my PLC program with autodesk inventor, using for example OPC connection between Inventor and my PLC. I know its possible in Delmia, but in our firm we have Inventor.
I would like simulate this action or model this simple action I have in this sketch. It is pretty basic but I am drawing a blank on how I could see the max movement I can get with a 6" cylinder stroke.
Maybe more difficult than I am capable of, I could model it but don't know how to get it to move or rotate that would simulate the movement.