AutoCAD .NET :: Finding Out When Custom PaletteSet Is Closed Using Code Crash

Jul 3, 2012

I would like to do something when my paletteset is closed. I took the C# code from here

[URL]

I modified the code to VB.net

Dim WithEvents ps As Autodesk.AutoCAD.Windows.PaletteSet <Autodesk.AutoCAD.Runtime.CommandMethod("psTest")> _ Public Sub PSTest() If ps Is Nothing Then ps = New Autodesk.AutoCAD.Windows.PaletteSet("psTest")

[Code]...

My code crashed. If I catch exception it is eInvalidInput exception. I don't know what to do as it is a simple code segment I don't know hot to fix it.

View 9 Replies


ADVERTISEMENT

AutoCAD .NET :: Set One Palette On Paletteset On Top Through Code?

Apr 11, 2012

I have a paletteset which contains multiple palettes. How can I set one of the palette on top through code?

It is something like set current tab in tab control

View 1 Replies View Related

AutoCAD .NET :: Finding Cardinal Points Of Closed Polyline?

Jun 20, 2013

I want to find the cardinal points ( N, S, E, W) of each face of a closed polyline, how?

Windows 7 (x64)
AutoCAD 2012 (x64)

View 5 Replies View Related

GIMP :: Finding Layers After File Has Been Closed?

Nov 18, 2012

Is there a way to get back all of your layers once you save a file andclose out of it? I am new and am creating magazince covers - All I need todo is change the pic - but did not want to have to re-create the entirecover if I did not need too...

View 15 Replies View Related

AutoCAD Inventor :: Opening Drawing File Invisible Causes Code To Crash

Jun 10, 2013

I am building a custom batch update for our drawings to take border definitions as well as custom iproperties from a current template and push them into a specified inventor dwg file.  I built a form for the users to select the template they want to import into a list of files they place in the form.  The program opens the template, get's all the information (iproperties, border defs, etc... using the active document to get the document) then iterates through the list of the users doing the following for each file (also getting the active document to get the items in each file):  open, replace border definition, insert any non-existent custom iproperties, save and close the file.  It works great when I keep the open visible set to true for the files.  When I switch the visible property to false for each one of the files I want to open I get an error similar to this:  Systems.InvalidCastException: Unable to cast object of type 'Inventor._DocumentClass' to type 'Inventor._DrawingDocument'. at  ---- then my button click event here. 

Does inventor technically not see a document as an active document if the file is not visible when opened?

View 2 Replies View Related

AutoCad 2D :: Getting Custom Linetypes To Face Out On Closed Polyline

Mar 8, 2012

I am a landscape architect, and am trying to use bushy linetypes to delineate blobs of mass plantings. I created my custom line types, and tweaked them to the point where they look the way i want, but whenever i have a curve the line type faces in not outside the closed polyline. all of my shapes are closed poly lines, and i need the linetype to face out other wise it looks weird. I am attaching a picture the strait line to the right is the way that it is supposed to look, but in the circle you can see how the points are all facing in to the middle of the circle? reversing the direction dose nothing, and using a or u in the place of r in the linetype shape code doesn't work either below is the line types code and image.

*Curveypines, Curvey zigzag
A,.0001,-0.0,[a,curvya.shx,s=.01,r=0.0,x=0,y=0],-.25,[b,curvyb.shx,s=.01,r=0.0,x=0,y=0],-0.0,[a,curvya.shx,s=.015,r=0.0,x=0,y=0],-.355,[b,curvyb.shx,s=.015,r=0.0,x=0,y=0],-0.0
Screen shot 2012-03-07 at 4.30.48 PM.jpg

View 4 Replies View Related

AutoCad :: Code A Custom Linetype

Sep 12, 2013

Is it possible to code a custom linetype, so that it only follow certain annotation scales (e.g. 1:100, 1:200 1:500) and so that it just appears as a continuous line below and above these certain scales?

The solution should work even when the drawing is used by others and apply to both modelpsace and paperspace (viewport).

View 0 Replies View Related

AutoCAD .NET :: How To Code Drop-down List For Custom Property Using OPM

May 27, 2013

I am mainly developing for AutoCAD 2013/2014 how to implement a custom property as a drop-down list using OPM and .NET/C# wrapper. I have successfully created categorized custom properties already and can read/save them in XRecords via the OPM. I further implemented the members for IDynamicEnumProperty (using an ObjectARX DLL) in .NET/C# which are:

// ENUM-PROPERTY INTERFACE METHODS DEFINITIONenum myEnum{ steel = 0, copper, wood};public void GetNumPropertyValues( int numValues ){ numValues = 3;}public void GetPropValueName( int index, out String valueName ){ valueName = Enum.GetName(typeof(myEnum), index);}public void GetPropValueData( int index, ref Object valueName ){ valueName = index;}

And I have implemented the GetCurrentValueData() and SetCurrentValueData() members in my .NET/C# wrapper as per the IDynamicProperty2 interface as following:

public void GetCurrentValueData( Object pUnk, ref Object varData ) {AcadObject obj = pUnk as AcadObject; if ( obj != null ){using ( Active .Document.LockDocument( DocumentLockMode.ProtectedAutoWrite, null, null, true ) ){using ( var tr = Active.Transaction ){ObjectId ObjId = new ObjectId( (IntPtr) obj.ObjectID ); DBObject DbObj = tr.GetObject( ObjId, OpenMode.ForRead ); if ( DbObj != null ){try {if (
[code]....

This code compiles without error but instead of the expected drop-down list the OPM only shows a field where I can enter or edit integer numbers, but there is no drop-down list when clicking on the field....

View 1 Replies View Related

AutoCAD Inventor :: ILogic Code - Change Custom Properties

May 31, 2013

<Subassembly document name>” = iProperties.Value("Custom", "CUSTOMER P.O. NUMBER") iProperties.ValueInDoc("<Subassembly document name>.iam", "Custom", "CUSTOMER P.O. NUMBER")= Ucase(InputBox("CUSTOMER P.O. NUMBER?", "Create Customer P.O.#", iProperties.Value("Custom", "CUSTOMER P.O. NUMBER")))

View 3 Replies View Related

AutoCAD Inventor :: VBA Code To Toggle Custom Button Image?

Jun 5, 2013

I have created some custom button in VBA. I wish I can make those buttons toggling their image.

For example my custom button toggles Part/Component priority or Highligt on/off and I would like the button image will change showing the current state.

The background image color change will work too, or the some extra tiny mark on working sceen would be useful if it quite complicated to deal with ribbons.

Generally I need to see the current state at glance.

View 1 Replies View Related

AutoCAD Print / Plot :: Crash On Custom Properties

Apr 12, 2013

When I try to modify the custom properties for the HP t2300, Autocad C3D 2011 instantly becomes non-responsive and hangs.  After a few seconds, every other open app suffers the same fate.  If I have task manager open to the performance tab, I can see memory use escalating rapidly.  Either I use Taskmanager to kill Acad quickly, or I end up killing the power to the computer and restarting the hard way,

the plotter is set up on the network with separate queues for Postscript and HPGL.  Accessing the PC3 for the PS queues has no problem, it's only the HPGL queue that hangs me up, and only in C3D 2011 (and Civil3d as AutoCAD)

LDT and LDC Map 2009 do not have the problem,. nor does Map3d 2011, and TrueView 2013 is also fine.  All of these are pointing to the same set of PC3, PMP, and CTB files.Other applications do not have any problem getting to the printer properties, just Civil3d 2011..

View 1 Replies View Related

AutoCAD .NET :: Adding Custom Code In Reference Editing And RefEdit Command

Jun 6, 2012

how i can add .net code on reference editing and refedit command.

View 4 Replies View Related

AutoCAD Inventor :: Add Custom Button To Ribbon To Launch ILogic Code Using VB

Jan 16, 2013

I'm trying to find a way to add a custom button to my ribbon that will launch a global rule or form using VB. I know of a way using VBA but I want to get away from VBA. I'd much rather create an add with VB and use that.

I'm currently running IV 2012.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Running Code As Macro (custom Command In Ribbon)

Dec 23, 2011

So I can run the following code from the command line with no problem:

  (WRK-Insert_Standards_Block '("S:\AUTOCAD\_Common\Linetypes\CSW_Civil-Linetype"))
  (WRK-Insert_Standards_Block '("S:\AUTOCAD\_Common\Linetypes\CSW_Survey-Linetype"))
  (WRK-Layer_Insert_all "CSW-X-FM_Layers_List")

However when I put it into a macro (custom command to be used from the ribbon) it spits out the following in my command line:

(WRK-Insert_Standards_Block '("S:

View 2 Replies View Related

Edge Animate CC :: Defining Custom Easing In Code

Sep 4, 2013

Part of my project includes a slider that is dynamically given a position. Because this all happens in code, I can't use the timeline tool to change the easing to something like "easeOutBounce."
 
This seems to follow the jQuery convention but results in the standard easing:
 
sidebarSymbol.$("slider").animate({top: sidebarSymbol.sliderPositions[scene]}, 750, "easeOutBounce", sym.playNext());

View 3 Replies View Related

Illustrator :: Restore Custom Actions After Crash?

Jan 5, 2013

I just spent two days automating a large project with Illustrator CS6 actions. I suppose I should have expected Illustrator to crash at some point during this process but I didn't and, of course, it did. Upon starting Illustrator back up after the crash, I found that all dozen or so of my complex actions were gone.
 
I did a bit of googling and it seems that AI doesn't save these to disk anywhere; rather it just keeps them in memory until they're explicitly saved. That is, creating an action doesn't seem to actually store it anywhere.

View 2 Replies View Related

AutoCAD .NET :: How To Add Paletteset For 2013 C#

Jul 17, 2013

I cant find Autodesk.AutoCAD.Windows.PaletteSet as My Program,

im import AutoCAD 2013 x64 Directorys
accoremgd.dll
acdbmgd.dll
as my source.

Program is using c# 4.0

// this is my class source.
using ACAD = Autodesk.AutoCAD.ApplicationServices.Core;
using Autodesk.AutoCAD.Runtime;

View 2 Replies View Related

AutoCAD .NET :: Scroll Bar For Paletteset?

Jan 6, 2013

I created an an app that uses a paletteset, and displays an usercontrol in it. I want to add a scroll to the paletteset. As when I resize it for editing the dwg file, The paletteset data below cannot be viewed without a scrol bar. get the scroll bar.
 
Autodesk.AutoCAD.Windows.PaletteSet m_ps = new Autodesk.AutoCAD.Windows.PaletteSet("Object Data");UC uControl = new UC();m_ps.Add("Object Data", uControl ); m_ps.Visible = true;
 paletteset properties does have any properties related to scrollbar.

View 3 Replies View Related

AutoCAD 2010 :: Closed Polyline Not Showing As Closed Section

Apr 10, 2012

I have used PEDIT to join multiple polylines, which now appear as polylines. But when I use QSELECT to show all open (non-closed) section, one polyline still shows up as open.

I've attached the file I'm working on. The polyline in question is the green outline on the object on the right.

View 4 Replies View Related

AutoCAD .NET :: PaletteSet Expands UserControls

Nov 21, 2013

I just spent ages perfecting a series of windows forms dlls (not wpf or anyting, just normal user controls from VS2012). they look, compile and test fine. but when I add them to an autocad PaletteSet they stretch out 57 pixels and move buttons into textboxes and such....

is this normal? my docked control is not 407 wide....

it was 350 the entire design phase! and if it added 57 it would be one thing but it "stretches" half the controls and leaves the rest so they overlap!

View 2 Replies View Related

AutoCAD Inventor :: ILogic Code Part Iproperties To Custom Iproperties

Sep 19, 2013

I was looking for some iLogic Code for Inventor 2013 that would cycle through all the parts in an assembly grabbing the quantity of each part and setting it equal to the custom property "Qty" of each part.

Having a little trouble creating the for each loop and setting reference to each part without referencing each part by specific name.

View 6 Replies View Related

AutoCAD .NET :: Paletteset MinimumSize Doesn't Seem To Work When It Docked

Oct 3, 2011

I created a paletteset with MinimumSize, it works fine when the paletteset is not docked to anywhere. However the MinimumSize doesn't seem to work at all. I tried to dock it to left, then I can drag the edge to really narrow.

View 1 Replies View Related

AutoCAD .NET :: PaletteSet Changed Control Size And Layout

May 27, 2011

The PaletteSet changed control size and layout. It's different from the status in VS.What's the reason?

View 7 Replies View Related

AutoCAD .NET :: Getting User Input Error After Showing A Paletteset

Aug 12, 2011

I have got a problem about getting user input. In a function i am first getting a selection from the user by editor.getselection(...)

then i show a palette set with my user control in the same function. everything is fine so far.

but after showing paletteset i try to get a string from the user by editor.getstring(...) in the same function but statement continues as i never request it. when i check the PromptResult status it is equal to cancel.

i mean

Transaction acTrans = null;
Document acDoc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
Database acCurDb = acDoc.Database;
acDocLock = acDoc.LockDocument();
using (acDocLock)
[code].........           

i tried to lock the document but it doesnt work either. when i comment out "showpalette(true)" it works correctly. i realized that if my document window s state is not WindowState.Maximized then my code works just fine but if it is WindowState.Maximized it does not work.

View 4 Replies View Related

AutoCAD .NET :: Catch Event Of Paletteset While Changing Container Inside A Palette

Sep 3, 2013

How can I catch the event when I change the container inside a palette?

View 3 Replies View Related

Illustrator :: Multiple Offset Outlines On Closed Or Non-closed Path

Sep 27, 2013

i want to have multiple offsetoutlines on a closed or non-closed path. with "offset path" i can make only one additional outline but i need multiple?
 
i searched all over the net for answers with no success.

View 4 Replies View Related

Photoshop :: Finding Custom Shape From Photoshop 6

Apr 3, 2004

I am trying to find the default custom shapes that came with Photoshop 6, I am using cs now and dont have them anymore. I am trying to find this shape, it looked like a distorted rectangle. One side was larger than the other and all the sides where not parallel.

View 1 Replies View Related

AutoCAD Inventor :: Default (custom) Material For Custom Content Center Parts

Feb 21, 2013

When inserting a content center part for which we have to choose a material, we would like to have a custom material as a default (material with name: "No material selected"). So when selecting no material for this part (for example when the user forgets to select a specific material), the default material (in this case material "No material selected") will be active. In this way, we can see in one view across the BOM which parts have no material assigned yet.

How can this be achieved in the content center (editor)?

Product Design Suite 2014
Inventor 2014, Vault 2014
HP Workstation Z220
Intel Xeon 3.4GHz
16GB RAM
Nvidia Quadro 4000
Windows 7 Professional (64bit)

View 2 Replies View Related

AutoCAD Inventor :: ILogic - Set Custom Property In Custom Content Center Part

May 16, 2013

When using Inventor with Vault, we have a problem when categorizing custom content center parts in Vault. In short, custom content center parts are incorrectly categorized as "Content Center" and automatically released - as there is no property that we can use to identify these files.

I need iLogic code to trigger when custom content center files are created/saved, wich adds the following custom iproperty "IsCustomContentCenter=True".

View 1 Replies View Related

AutoCAD LT :: Add Custom 2006 Buttons To 2012 Custom Ribbon And Panel?

Mar 12, 2012

I have been using AutoCAD 2006.  Our company is switching to AutoCAD 2012 LT.  I want to be able to add my custom toolbar buttons from the 2006 to the 2012 LT custom Ribbon Tabs & Panels.  I have figured out how to make the custom ribbon, tab and panel.  I just haven’t figured out what I need to do to get the old stuff to where I can add them to the panels.

I have custom 2006 buttons with and without flyouts. 

View 9 Replies View Related

AutoCad 2D :: Drag Previous Custom Command Into Existing Custom Tool Bar

Nov 27, 2013

When I drag a previous custom command into an existing custom tool bar and edit the custom command (then rename the command in the Name and Command Name) it also changes the previous custom command that I originally drug into the toolbar. What am I doing wrong?

View 2 Replies View Related







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