AutoCAD .NET :: How To Pass Parameter In Interface To Program Of DLL File
Mar 14, 2012
I have developed the interface using c#,i want to turn off or on the layer according to the parameter in interface.now i have carried out turn off or on a specified layer using a .dll file. but how i can connect the parameter in interface to the program in .dll file.
I have built a vb interface using a tutorial from AU. Now I would like to do the same without the interface.
Inventor uses ilogic to pass parameters to the dll - the dll does the number crunching & returns values to Inventor - no interface required.
The tutorial uses an OK button to fire values back & forth - how can I do this without a button? I would like this to fire in the background without a form appearing.
In previous versions of Photoshop until CS6, with your work set to 'Float in Window' mode, moving your artwork window meant that it sat behind the program interface at all times, so you could move it to the side of the screen and it would sit underneath your panels, layers, text, colors, tools etc...
In CS6, it now sits on top of it. This is extremely annoying as it means having to manually arrange the windows so they don't obscure the working tools. Any reason why this was changed? I'm sure it works for some people but it's disrupting my workflow.
I am unable to use the file command open, new etc. I click on open and nothing happens no file box opens. As soon as you do anything else the program says not responding and you have to close it down. I can click on an autocad file in windows explorer and bring up the file this way but as soon as you try any file command such as save as the program freezes again. I am running windows 7 professional and the autocad LT 2011 64 bit program.
I'm trying to get a parameter value from an Inventor .dwg file, but I keep getting an error saying the file is not found. I use this same code all over the place between different parts but its the first time I'm tried it using a dwg. Can you not access an Inventor .dwg parameters using iLogic .
I have user parameters that are no longer needed and are not being used anywhere. They each takes 4-5 seconds to delete, prior to 2012 this would happen instantly.
I've been using Photoshop 7.0, and all of a sudden I can't open my pdf files, I get this message can't open ....file there is a problem with file-format module interface. Some of these pdf's I've opened before and they were ok.
I got a problem to pass parameter from VB to batch file. My code is below to run the batch file and to pass parameter.
Private Sub Button4_Click(sender As System.Object, e As System.EventArgs) Handles Button4.Click Dim input As String Dim output AsString input = "C:atchFile est.gds" output ="C:atchFile est.dxf" Dim batchFile As String = "C:atchFileLC_gds2dxf.bat" Process.Start(batchFile, input & ""& output) EndSub
With this code the output is like below:
If you look at the screen shot you can find out that input and output variable is passing to one variable LC_gdsin. But I want that output file location will be assigned to LC_dxfout. I tried a lot but could not able to do that.
in inventor 2009: i linked parameter of 3D design from excel file. If i change the value on excel file --> dimension of 3D design will change. It work fine.
So, in inventor 2011, i can not do it: when change the value on excel file, 3D model does not change dimension.
I got a deadline for my project, but I got a big problem:
"I cannot set the "parameter" for the End Value in Parameter Animate dialog"
For easy understand, let's see a example:
1. I got a part which has two parameters named: "A" and "MaxA" 2. I animate Favorited parameter A. 3. The End Value is MaxA_ (Everything is ok) 4. I finish Studio environment, then I change parameter MaxA_ from 200 mm to 400 mm 5. I turn back to Studio environment, the End Value now is "200 mm" (I want this will be MaxA_, so I can animate the flexible parameter).
show me how to keep the end value will be "MaxA_" after I change parameter?
I am trying to publish to the CC a guide rail. The vendor of the rail gives me the option of entering the desired length of the rail. After that he gives me the option to choose between the length that I entered and a shorter and longer standard length witch can be delivered faster.
I want to do the same thing with my published part, but I cannot make a key parameter to change depending on the entered custom parameter. I want the user to make the next steps when inserting from the CC: 1- select the size of the rail; 2-select the type of the rail; 3- enter the desired length of the rail; 4- choose between the desired length and the 2 recommended lengths (I need these 3 lengths to be shown)
I am trying to put a URL link to a file in a components instance parameter, to show up in the properties palette, I can put the URL in there, but no link is established. How would I get this to link to the file?
I have been making and sharing shared parameter files for years... For some reason today a co-worker's shared parameter file is invalid or could not be read...
We have run a couple of tests - I can create one on my computer and send to her without any issues... Any that she creates and sends to me - is invalid... WHY?
Starting brand new project. Would like to change the name of some shared parameters within my txt file. As far as I know you cant chnage the name once its established witin Revit (unless theres a third party app). Would there be any issue withi this? Utimately I am pushing these parameters into new geometry and I would like them to better conform to a standard for a particular customer. I rennamed JUST the parameter name and it seemed to work ok.
I wrote some LISP programs. I would like to use the output data generated by LISP program in Command arear of AutoCAD. I Heard we can dave the output data into .dat files.
I would like to know if i can put pass protection on a block and have no one be able to change thing about the block? So what I mean is I send you a block that has pass protection on it, you can paste it into your drawing but cannot explode it to make some change on it.
I've used vb.net to write two separate addins. I was wondering if there is a way to pass a variable from one addin to another similar to the way shared variables are passed from rule to rule in iLogic.
I have found a rouind about way to display document thumbnails in VBA in 64 bit windows 7 inventor.
The only piece of the puzzle I am missing is for a way to push a document object or a document file name into an iLogic Rule from VBA.
Below is a 64 bit thumbnail solution for VBA sans the input.
Essentially I am launching an iLogic Rule from VBA that pushes an inventor document object into a VB.NET dll.
The dll converts the iPictureDisp into a VB.NET image object, reduces the size then converts it into a byte array.
The byte array is passed back to VBA through the same iLogic Rule.
Once the byte array is received it is converted back into an iPictureDisp object.
' ----------------------------------------
' --- VBA Project Form Code ---
' ---------------------------------------- Option Explicit Private Sub Command1_Click() End Sub
' -------------------------------------------
' --- VBA Project Module Code ---
' ------------------------------------------- Option Explicit Public Sub SetPic(ByRef bBuffer() As Byte) Set UserForm1.Pic.Picture = PictureFromRes(bBuffer) End Sub
My questions is how to prevent the following from happening. I created a layer style drop shadow in a .psd file with the below parameters.
I saved it as an .asl file that I could use later. When I loaded it into a different .psd file later that day some parameters stayed the same but the angle reverted back to 30 degrees from 120 degrees all on its own as shown below.
I just want to know how to keep layer style parameters I saved in an .asl file from reverting back to defaults when loaded in to a new .psd file.
My systems parameters are as follows: Photoshop CS6 Extend Version 13.0 x64 Mac OSX 10.8.2 with 705.44 GB used out of 749.3 GB available
The only other software I am running is Safari web browser. This is my first time trying to save a layer style and use it in a different .psd file other than the one I created it in.
When I go to save a file in psd i keep getting cannot save file because of program error and when i go look at the saved file it is now something like this ~ps7574.tmp the numbers are always diffrent..but I loose my file..I cannot do anything with a .tmp file. I have unistalled and re installed and it keeps doing it..
We have a need to select a tangent line/polyline etc and then select two other points we would then like to have the program draw an arc through the two points and yet still be tangent to the initial line/polyline that we picked. We don't care what the radius is as we believe there is only one solution anyway. It would be wonderful if we could just use the Arc command and select start>Second Point> then just use the Tangent Osnap but I guess that is out of the question :-)
The only code that I have come across that even resembles this only allows for one point not two (STILL VERY HANDY AND VERY SLICK)
(vl-load-com) (defun near_vertex_arr (obj / dxf_obj e_next obj_vlax pt_sel par pt_first pt_snd i bulge) ;bruno.valsecchi
[Code]....
How does everyone else hande this? By they way... I dont care what language it is written in :-)