Illustrator SDK :: Set Art Name In Timer Event?
May 30, 2012
I create art objects and set name to art-board.This arts are set by timer event function (created by AITimer->AddTimer).
But following doing UNDO, plug-in freezes.
Not in timer event function, there's no problem.And no setting name, there's no problem, too.
I use SDK CS5.
View 1 Replies
ADVERTISEMENT
Aug 2, 2013
I have a button which has a mousover/mousout animation. When i click the button, it will shrink down to 0%. when it does, my mousout event is triggert, which i dont want.
how can i disable the mousout event after the click event?
View 4 Replies
View Related
Oct 16, 2012
adobe illustrator CS6 sdk .I am trying to add an event listener to the existing check-in menu item. When check-in is invoked i want to dispatch an event to cs extension. I got hold of the check-in menu item in AIMenuItemHandle, but i do not find any functions to add any event listeners to the check-in option. How do I add event listener to the check-in menu item?
View 3 Replies
View Related
Apr 21, 2011
I have VideoStudio Pro X4 (legal of course, not trial). I want put timer on my video. For example: 09:00... 08:59... 08:58... 08:57... I don't see it function in the pack. And I don't know where I can take it.
View 5 Replies
View Related
Nov 13, 2013
Can we get an event / notification when user selects the Save option ?
My plugin is required to perform action on this event.
Which suite is used for the same ?
View 1 Replies
View Related
Jan 8, 2013
How do you disarm the auto advance timer in Slideshow mode of Lightroom?
View 1 Replies
View Related
Oct 20, 2013
I have been using PSE 11 for about 6 months with no problems, however, yesterday the prog froze and I had to switch off and re-boot. Now all new uploads are displayed in the organiser as egg timer icons. These will open, but only one at a time when double clicked on. I am on Windows 7. I have uninstalled PSE 11 and re-installed but the problem persists. I have uploaded a very small jpeg and got the same resuilts, which seems to rule out a RAW problem.
View 2 Replies
View Related
Mar 24, 2014
What I am trying to accomplish is to make a 10-sec video that has a real time countdown clock to a certain part of the day (Ie: 5 hours and 10 secs left till 8 pm). Designing the clock is simple, what I cannot figure out is what program i should use and how to make it link to real time. Is this possible in after efects or do i need to use flash professional or something else. To give you a little bit more information, typically I design ads that just run on a loop, this ad has to be different because it needs to run in a loop and somehow go and get the countdown according to real time and not just the videos length. (I've heard of somehow making a flash SWF file that either links to computer or RSS file, but how to do that in aftereffects.) This is what i can find, but NOT what i want: [URL].... I want it to use real time for countdown.
The media player running this 10-sec video ad is apparently compatible with Flash SWF.
View 2 Replies
View Related
Jun 19, 2012
I was interested in finding out if it's possible to write a LISP routine that would execute a pop-up dialog box say every 30 minutes. This is strictly for ergonomic reasons to remind the user to take a pre-determined break.
I am not an expert code writer by any means, but I imagine the routine would autoload and resetting the timer to 0 upon opening a particular drawing file. The LISP routine would then run in the background and run the (alert "") command when the timer reaches 30m 0s. When the user presses the OK button, the timer resets to 0 again.
View 9 Replies
View Related
Apr 20, 2009
I modify the properties of a slice, it triggers a dialog box that i have made myself.In order to make that, I have to know how to capture this event. For the design of the dialog box, there isn't problems ..i know how to do that but not how to capture this event.I have already analyze the Getter plugin and his "getter.log" but i don't understand how it works. Listener is more easy to understand.
View 1 Replies
View Related
Dec 3, 2010
I just bought and installed the VideoStudio X3 (which came with several extras, namely: VideoStudio Express 2010, DV-to-DVD Wizard, DVD Factory Pro 2010, DVD Movie Factory 7 SE and Painting Creator) and, ever since, all my Folders are bombarded by a plethora of .event files (seemingly all of 0 length) which are a nuisance, especially because they even appear in Folders supposedly untouched by VideoStudio (including the Mirror Folder in which I am building my Website, where this files are truly unwanted). How can I avoid these .event files to appear? Oh... something else: How do you make VideoStudio appear in a normal Window? (I ask this because it appears full screen on my first monitor and I would like to see it in the second, which is larger, without having to change the monitor assignment).
View 2 Replies
View Related
Dec 5, 2011
Private Sub ObjectModified(ByVal sender AsObject, ByVal e As Autodesk.AutoCAD.DatabaseServices.ObjectEventArgs)
With e.DBObject
If .IsWriteEnabled Then Exit Sub
If .Id.ObjectClass.Name = "AcDbAttribute"Then
?????
End If
End With
End Sub
Trying to read the attribute's tag and text.
View 2 Replies
View Related
Nov 15, 2011
I am trying to add event handler in the "ThisMacroStorage" module of CorelDRAW X3. I wrote a procedure to handle the "GlobalMacroStorage_DocumentOpen(ByVal Doc As Document, ByVal FileName As String)" subroutine. However, it does not trigger when I open an existing document the event does not trigger. When I check the Application.EventEnabled property the value is false. When I set it to true the value remained false.
The handler routine works in X4 and X5 and the Application.EventEnabled are both true in X4 and X5.
why X3 does not trigger? According to the dvba_pg.pdf file the events including "GlobalMacroStorage_DocumentOpen(ByVal Doc As Document, ByVal FileName As String)" will trigger in this case when a file is opened.
Is there something I need to do so that Application.Enabled will true? I did a X3 repair. I reinstalled the Utilities which includes VBA. I reinstalled the 3 updates.
View 1 Replies
View Related
Nov 29, 2013
In my plug-in I have some datagridview to show alignment data of all alignments in drawing.
I have a button called (regen) to update data in these datagridviews. I read again database drawing and re-source again datagridview. (method "upload_all")
I have read some posts and blogs about this: [URL] ....
and about overrule: [URL] ....
But I don´t understand almost.
I only want to execute method "upload_all" if some alignment is modified in the drawing.
Also, I would like to do it if some alignment is just created or deleted.
Autocad Civil 3D 2014 +SP1
Quad Core Intel i7 3770-cpu 3.40Ghz.
ssd samsung 840 pro 512gb+ssd samsung 840 pro 256 gb+1tb hdd
32gb RAM 1600 Mhz.
nVidia Quadro 2000.
Win 7 Pro 64bit
View 1 Replies
View Related
Mar 31, 2013
Is there any Event or ApI to get the Point3D when the mouse is moving using .net
I want to get Point3D when the mouse is moving just as CAD shown on lower left corner. Is there any way to get it with .net?
View 2 Replies
View Related
Jul 17, 2013
I want to catch drawing modify event, that means if user start to edit current document I want to give a message to user.
View 3 Replies
View Related
Jun 15, 2011
why does the DocumentCreated-Event fired two times. Thats a problem because the code within the event-method must only execute one time.
View 2 Replies
View Related
Jul 9, 2012
There is an event at the show of multiselect ribbontab on Civil3D?
View 4 Replies
View Related
Dec 11, 2012
I have a group of classes that essentially implement the Model View Controller pattern. The view is a custom control contained in a PaletteSet. The Model is a class that wraps the ObjectID of a given block. I've used these classes to create a replacement for the Properties tool in AutoCAD (2011). Basically the UI can be used to edit the properties of a Dynamic Block. But I apply my own rules and behaviors to the UI.
I had no problems until I added support for the View to be updated when the block is modified (say by dragging to increase a length property). To do this I handle the Modified event of the block. After the block is modified, some rules are evaluated. If the rules result in changes to the block's properties, these changes are applied. This last part is where I'm having trouble.
When the "Rule Evaluation" code is invoked because of changes to the view (WinForms Controls), I am able to update the block's Properties using the following code without issue:
Public Shared Function SetParameter(ByVal BlockID As ObjectId, ByVal ParameterName As String, ByVal Value As Double) As Boolean
Using dl As DocumentLock = Application.DocumentManager.MdiActiveDocument.LockDocument(DocumentLockMode.ProtectedAutoWrite, Nothing, Nothing, True)
Using myTrans As Transaction = BlockID.Database.TransactionManager.StartTransaction
Dim myBRef As BlockReference = BlockID.GetObject(OpenMode.ForWrite)
For Each myDynamProp As DynamicBlockReferenceProperty In myBRef.DynamicBlockReferencePropertyCollection
If myDynamProp.PropertyName.Equals(ParameterName, StringComparison.OrdinalIgnoreCase) Then
myDynamProp.Value = Value
myTrans.Commit()
Return True
End If
Next
Return False
End Using
End Using
End Function
However, when this same code is invoked as a result of the BlockReference Modified event, AutoCAD completely crashes the momment the transaction.Commit() method is called. I've attempted to catch the exception causing the crash and role back the transaction, but AutoCAD simply exits and displays the error (Error handler re-entered. Exiting now.) and no exception is caught. Note that I do not use the BlockReference instance passed to the Modified event handler. Instead I store an ObjectID instance elsewhere which is consistently used to read/write the block.
Is there something I must do before commiting a transaction when using the Modified event of BlockReference? I checked, and the same "Main Thread" is executing whether the code is invoked from a UI event or the Modified event. I tried calling the Close method, which is attributed as Obsolete, on the BlockReference object before executing the transaction without any success.
View 3 Replies
View Related
Dec 8, 2011
Is there any chance to define an event trigger which runs an iLogic rule when we check out an already open file? Problem is, that we need to synchronize iProperties on check out to clear "Approved by" when Vault State of Part is "under revision"
Vault Parameter "State" is mapped with iProperty "State".
So I want to run the following on check out:
Call ThisApplication.CommandManager.ControlDefinitions.Item("VaultPropertyWriteBack").Execute2(True)
View 3 Replies
View Related
Aug 20, 2012
I would like to automatically wire up the event handlers for my .net assembly when it is loaded. For instance, does AutoCAD look for and call a "Loaded" or "Initialized" event when it loads my DLL?
View 1 Replies
View Related
Nov 11, 2011
I have addin running inside Inventor. The requirement is that addin should be able to capture the "save as" operation done by the user. Internally, addin stores unique information in the active Inventor file and when user does "Save as", it needs to generate and store the new unique information in the newly created file after Save As. That is the reason it is required to capture the Save As event.
It was possible to capture the "Save" event and there I get Event Timing Enum (kBefore and kAfter). But the file name is same for kBefore and kAfter. So its not possible to identify that its Save As operation.
View 3 Replies
View Related
May 31, 2011
I am trying to get a list of selected entities and their layers, but I want to capture it from the editor, not a command.
I currently have
Private Sub ed_SelectionAdded(ByVal sender As Object, ByVal e As Autodesk.AutoCAD.EditorInput.SelectionAddedEventArgs) Handles ed.SelectionAdded Try For Each objid As ObjectId In e.AddedObjects.GetObjectIds Using tr As Transaction = ed.Document.TransactionManager.StartTransaction Dim ent As Entity = tr.GetObject(objid, OpenMode.ForRead) ed.WriteMessage(vbLf & objid.ObjectClass.DxfName & " is on " & ent.Layer) End Using Next Catch ex As Autodesk.AutoCAD.Runtime.Exception End Try End Sub
but when select a circle on Layer 1, I get the result below in the command line
CIRCLE is on Layer1
CIRCLE is on Layer1
CIRCLE is on Layer1
CIRCLE is on Layer1
CIRCLE is on Layer1
CIRCLE is on Layer1
Command:
CIRCLE is on Layer1
If I hover over the circle while it is selected, it also treats it as a selection.
View 2 Replies
View Related
Sep 9, 2013
In order to avoid duplicate event handlers, I did like the following...
Document doc = Application.DocumentManager.MdiActiveDocument;try { doc.BeginDocumentClose -= new DocumentBeginCloseEventHandler(MyEventHandler); }catch { // Do nothing }doc.BeginDocumentClose += new DocumentBeginCloseEventHandler(MyEventHandler);
The above worked greatly with AutoCAD 2007. But yesterday I migrated my code into AutoCAD 2010 (with Object ARX 2010).
Unfortunately, it seems like AutoCAD 2010 catches before my code catches it. I guess I could just have a global boolean value that checks the status of event attachment.
View 7 Replies
View Related
Feb 8, 2012
i am trying to make a custom palette to display some custom information pulled out from selected objects.i can deal with the palette part.
i want some code for when you click an object in model space then the property palette updates. i am gonna keep it simple so this custom palette only refresh to the last selected object. but i don't know how to make an event when mouse click the autocad object and then do my things. any codes in c# or vb.net would be nice.
so use commandmethod load in a command and there will be a palette there stay open, when user click on an object then it will get populated. what event do i use for the clicking?
View 4 Replies
View Related
Oct 1, 2013
I'm trying to create a handler for the OnDocumentChange Application event.
private Inventor.Application m_inventorApplication;
Inventor.ApplicationEvents appEvents = null;
public StandardAddInServer()
[Code]...
My OnSaveDocument handler works just fine but the OnDocumentChange will not fire. I've been using the even watcher and have been using other handlers but cannot seem to get this one to work.
View 7 Replies
View Related
Nov 16, 2011
I'm trying to react to the AutoCAD application window being resized, that reaction is to move a form so that it stays in the bottom right hand corner of the AutoCAD application window. However, I cant seem to find a way to react to an AutoCAD application window resize event.
View 1 Replies
View Related
Jun 5, 2013
Trying to catch an export PDF event.
Few things I have tried...
UserInputEvents.OnActivateCommand
ApplicationEvents.OnSaveDocument
FileUIEvents.OnFileSaveAsDialog
Can't find any reference to export events.
Inventor 2014
View 2 Replies
View Related
Nov 26, 2012
Displaying a vb.net form when an autocad block reference is double-clicked. Unfortunately, I still don`t know how to capture the double-click event for a block reference from code. I have gone down the IMessageFilter path, still no success.
I have tried the addHandler for application using code supplied to me in my previous post, still no luck. I really need to be able to capture the double click event for a block reference in autocad, without overwriting the default autocad double-click behavior.
I wish to be able to double-click a block reference, capture its name, and, if the name is same as blocks created by my form, then I`d simply have my dot net form pop up, displaying a few of the block`s properties.
Below is the code module I am using, which isn`t working ofr me:
' System
Imports Microsoft.Win32
Imports System.Reflection
' AutoCAD
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.Runtime
Imports acApp = Autodesk.AutoCAD.ApplicationServices.Application
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.EditorInput
[code].......
And the Commands class, from which my vb.net form is generated, as well as where the ModDoubleClick.eventDoubleClick() method is called:
Public Class Commands
' Component for displaying the Mass Straight Conveyor form
<CommandMethod("mst")> _
Public Shared Sub massStraight()
Try
' Call this to override default block dblclk event handler
[code].......
View 9 Replies
View Related
Aug 3, 2012
How can I log in a file the start and close event of Autocad?
View 1 Replies
View Related
Jan 1, 2014
In PSE12 how does one display the icons under the event tab in a categorized tree structure?
In my PSE10 catalog, I have a highly structured event tag tree for 30,000 pictures and videos covering 15 years. This tree has annual main categories and then numerous events in 2nd level subcategories under each year. Below that are tags for which camera/person took the picture as well as other tags for videos, panorama-segments etc. Altogether there are probably several hundred or more subcategories. After importing the catalog into PSE 12 all of these subcategories show up in the top level display causing massive duplication that scrolls for 12 or more screens.
The PSE12 event tab is useless if it can only display every subcategory all at once in a flattened format. I also do not see any way to move these subcategories out of the events tag area and into the keyword tag area to eliminate clutter.
View 2 Replies
View Related