I am currently in the process of re-writing my VBA in .net.In VBA I successfully used AcadDocument_BeginClose which called lisp functions.It would be nice to have all code in the same environment I need to transition my changes.
Therefore I need to call lisp from .net.My function works well when run withing the cad files session but does not appear to call the lisp when called after the BeginDocumentClose.
Is it possible to call a lisp function after the BeginDocumentClose event?
I am setting this function in my compositionready and I want to call it from different places. That works fine but I also want to run myFunction() when the program launches.
Say you need a slightly more sophisticated animation and used a CreateJS from Flash.I've placed the CreateJS in a container, and I've been able to communicate from CreateJS to Edge symbol with no problem:
/* js this.onClick = function () { var comp = $.Edge.getComposition("EDGE-25177479"); var stage = comp.getStage(); stage.getSymbol("logo").play("playLogo"); }
But how do it the other way, and create a function from within Edge to call upon the CreateJS canvas ("myCanvas")?I want to call a "gotoAndPlay("start");" label on the main timeline of the canvas element. My syntax is completely wrong:
//on click var canvas = document.getElementById("myCanvas"); var context = canvas.getContext("2d"); stage.gotoAndPlay("start");
We installed autocad 2013 network license on server and able to access from client machine. However, we are unable to access license from server itself.
I use multiple layouts to produce build drawings and I use the name of the layout tab to identify the sheet on the shop floor.
I currently use a field in the titleblock that calls the system variable ctab, the problem is that whenever you update the fields, they all change to the name of the current tab, not the name of their own tab (by default, when you open the drawing, they all say Model).
I resort to building all of the layouts and converting that field to text prior to printing.
Is there a way to put a hatch mark (dimilar to a DIMCENTER) at a "virtual sharp"? For example, two 90 degree lines have a 1/4" fillet/radius between them. I want to put a small cross there the lines would have theoretically intersected.
I'm trying to be able to have a function run another function with the secondary function being passed as an argument to the first. I'm trying to create a recursive function and the recursive part works great. I just need to be able to have the recursive function run other functions to actually do stuff.
Here is something I found that should do what I need, mainly run a function from a function name in a variable.
Sub test() Dim ftnName As String Dim argument As String Dim result As String ftnName = "myFunction" argument = "cat" result = Application.Run(ftnName, argument) MsgBox resultEnd SubFunction myFunction(inString As String) As String myFunction = inString & " has " & Len(inString) & " letters."End Function
However I get the error "object required" on the "result = Application.Run(ftnName, argument)" line. So I'm guessing the Inventor VBA doesn't like this method of doing this. I'm just hoping there is a way to do this or this function will be useless or reduced to hardcoding functions which still defeats the purpose.
Is it possible to get a Limit/Fit tolerance included in a Hole Note call out, such as H7 etc?
Currently, when I am dimensioning Counter Bore holes, I have to use a general dimension for CBore dia incuding the Limit/Fit tolerance and manually add the hole dia (or visa versa). This means I have to manually update any changes to hole dia.
I want my custom property to defined as item #. That Item # then is represented in the balloon.
reasoning is that then engineers wont have to check drawings anymore for the guess work involved in matching the part balloon to each individual part in the assembly being called out.
I can then focus on creating a BOM that shows the different item#'s and the user can quickly go through it.
In the inventor drawing, while showing hole callouts for TAP, it is coming along with thread pitch (Ex: M12 x 1.5). But I dont want to show the pitch. How to call out only TAP size(Ex:- M12) without editing the dimension.
I'm trying to find a way to call a form in a skeleton part file from within a parent assembly file.
I can open the form from the skeleton part, then leave it open and update values even while the skeleton part is inactive or even closed. But I can't find out how to call it from the assembly file. Is this possible? I currently have to open the skeleton just to call up the form.
I can reference values or even add them in another form, but I am not allowed to change them in an assembly form, because they are (linked) reference parameters.
I have considered several workarounds, but this is how I really want it to work. I'm just not that familiar with the code to know if there's a way around. The code snippets only allow opening a form from the current document as far as I can see. I don't really want a global from because I'm only changing parameters in one file, not all.
Is there an easier way to dimension to a virual sharp or place the ordinate dimension origin on a virtual sharp than by trying to drag the point along each line until you get the dotted lines to intersect?
I have a VBA macro that places selected virtual components into an assembly. I can place virtual components with different part numbers into the assembly with no problem. When I try to place the second instance of a virtual component with the same part number I get an error.
For example: If I place a virtual component with the part number C123A456 into an assembly it shows in the tree as C123A456:1 If I try to place C123A456 again it errors at this line.
'Add selected line as a virtual part Set oOcc = oOccs.AddVirtual(sPartNumber, oMatrix)
I can place multiple virtual parts if I append -1, -2, -3 etc to the part number but I would like to let Inventor use the :1, :2, :3 to keep track.
I am using 2012 and am having a problem dimensioning to a virtual sharp.
On the above corner I select the straight edge on top or to the left of the corner. I then right click to bring up the intersect option but the only options I get are one, Snap Settings, Zoom, Pan, and Help.
Do I have a setting off somewhere? Or is there a location where the sharps don't work?
I have a script that is perfectly works in 2012 inventor pro version. It moves newly added virtual parts into the VIRTUAL_PARTS folder. Part of script is below:
Dim oFolder As BrowserFolder Dim oTopNode As BrowserNode oTopNode = oPane.TopNode() Dim oTopNodeOcc As BrowserFoldersEnumerator oTopNodeOcc = oTopNode.BrowserFolders For Each oFolder In oTopNode.BrowserFolders i = i + 1 Next If i = 0 Then oFolder = oPane.AddBrowserFolder("VIRTUAL_PARTS", oOccurrenceNodes) Else For Each oFolder In oTopNode.BrowserFolders If oFolder.Name = "VIRTUAL_PARTS" Then For Each oOcc In oAsmCompDef.Occurrences If TypeOf oOcc.Definition Is VirtualComponentDefinition Then oNode = oPane.GetBrowserNodeFromObject(oOcc) End If 'MsgBox(oTopNodeOcc(1).Name) oTopNodeOcc(1).Add(oNode) Next Else ' do nothing End If Next End If
In 2014 pro it works only once, when I add first virtual part. It creates a folder and moves it there. When I add 2nd virtual part it gives me a error
I am trying to use iLogic to programatically create virtual components in an assembly. These components will by used as iProperty "buckets" to hold Machine Center specific information to be exported to production planning software. This information is hierarchical in nature and cannot be (conveniently) stored in the assembly iproperties directly.
How to add a virtual part from an excel list to assembly using vb.net plugin. I`d like to know how to change i Properties of the virtual part through vb.net.
The iLogic code that I would typically use is:
Dim occs As ComponentOccurrencesoccs = asmDoc.ComponentDefinition.OccurrencesDim identity As Matrixidentity = ThisApplication.TransientGeometry.CreateMatrix Dim virtOcc As ComponentOccurrenceIf v_qty >= 1 ThenvirtOcc = occs.AddVirtual(sVirtPart, identity) Try iProperties.Value(sVirtPart & ":1", "Project", "Description") = oProp1iProperties.Value(sVirtPart & ":1", "Summary", "Title") = oProp1 Catch End Try.......
so for the plugin I need to re-write this
Dim _invApp As Inventor.ApplicationDim occs As ComponentOccurrencesoccs = asmDoc.ComponentDefinition.Occurrences Dim identity As Matrixidentity = _invApp.TransientGeometry.CreateMatrix Dim virtOcc As ComponentOccurrence If vp_qty >= 1 Then virtOcc = occs.AddVirtual(sVirtPart, identity) 'Try ' iProperties.Value(sVirtPart & ":1", "Project", "Description") = oProp1 ' iProperties.Value(sVirtPart & ":1", "Summary", "Title") = oProp1 'Catch 'catch error when oProp1 = nothing 'End Try
How should I re-write the text in bold , so it works?
I would like to include Terminals and other virtual parts in het BOM on my drawing. For this I need to generate a report. I have defined my own virtual parts but somhow their properties are not accessible. You can see 88 items but this is the total of all segements and pins. Somehow partnumbers show as "---". I have included the report configuration file I am using.
I'm currently using Inventor Professional 2012, and have been experiencing problems with virtual memory usage. In past versions of Inventor, the small bar graph counter at the bottom right-hand corner of the screen (Virtual memory counter? Not sure what to call it...) would "re-fresh" after closing a model, drawing, etc. (i.e. Once closing the file, the counter would change from yellow to green, bringing the virtual memory usage back to zero). However, this isn't happening with 2012, and I'm not sure if the problem is the way Inventor was installed onto my workstation, or if it's a problem with the hardware. A temporary solution has been to shut down Inventor when the bar graph gets too far into the yellow range (or red), and then starting up Inventor again.
Specs for my workstation are as follows: Windows 7 (32-bit), processor is Intel(R) Xeon(R) CPU W3503 @ 2.4GHz 2.39GHz, 3GB RAM.
How do I ad my own terminals, seals etc. under Connecter Pin Propertiesvirtual parts, and how do get this information on the nailboard.
Alternatively, I would to put this information(seals and terminals that are to be used with the connector) directly on the connector that i publish to content center, some sort of property/text, that I can retrieve on the drawing/nailboard.
I thought I had virtual sharps figured out but I guess not. I can dimension to the virtual sharps point but the wittness lines are not showing up. Thus it appears that the dimension is to something off in space. Where do I find the setting to show the wittness lines and select the style of lines? As I wrote this I thought of "styles editor" but I didn't fijnd anything there either.
Inventor Premium 2013 SP1.1 Vault 2013- plain vanilla version HP G71 notebook celeron cpu w 4gb RAM and 64 bit system Win 7 home premium
In Inventor you can use "virtual components" in assemblies for things like paint, oil etc. In Vault, these virtual components will get an item number. Is it possible to re-use a virtual component in another assembly?
Like the same paint for 2 different models (maybe just differing in amount). Right now I would have to create a lot of items for the same thing.
I don't know what is different today, than yesterday.... but I am getting a C++ Runtime Script R6025 error after having opened Photoshop CS6 32 bit. this is followed by the dreaded 'close program' screen.
Here is the 'Problem Signature' that is shown.
Problem signature: Problem Event Name: APPCRASH Application Name: Photoshop.exe Application Version: 13.0.1.0 Application Timestamp: 5022da52 Fault Module Name: MSVCR100.dll Fault Module Version: 10.0.40219.1 Fault Module Timestamp: 4d5f0c22 Exception Code: 40000015 Exception Offset: 0008d6fd OS Version: 6.1.7601.2.1.0.256.48 Locale ID: 1033 Additional Information 1: eef6 Additional Information 2: eef6656304cfa9f2762313c3628f6337 Additional Information 3: a847 Additional Information 4: a8474119e646472b6f207a8b45fa3110
Does this mean anything to any of you pros? How can I fix this?