AutoCAD .NET :: SendCommand From Palette Button Retaining Preselected Object(s)

Oct 25, 2011

I have a palette with a button. I'd like to be able to repeat the button command if space or enter is pressed.

But I also may have preselected objects to base the command on (otherwise it needs a pickfirst selection).

For some reason SendStringToExecute clears the current selectionset and I need to reselect an entity.

While calling the Sub directly doesn't allow the command to be repeated and ignores the DR CommandMethod call. 
 
Private Sub btnDraw_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDraw.Click Dim doc As Document = Application.DocumentManager.MdiActiveDocument Dim mycommands As New Commands mycommands.Draw() 'doc.SendStringToExecute("DR ", True, False, True) End Sub
<CommandMethod("DR")> _ Sub Draw()'If selectedobjects.count>0 then ... End Sub

View 2 Replies


ADVERTISEMENT

Illustrator Scripting :: How To Debug Script Palette Button / Object

Jun 28, 2013

I've got a script that creates a palette that does some calculations when a button is pressed - but something in the script is failing silently. (this question is about how to debug things like this, not what the problem is in my specific script)
 
I've read the debugging tips in the Javascript tools guide, and based on that, re-opened the script in the Extendscript Toolkit instead of my usual text editor, chosen Illustrator, and hit the green 'Go' button. But, either I've missed something fundamental, or this isn't designed for palettes - the script runs in Illustrator, successfully pops up the palette, considers the job done, pats itself on the back, and closes the palette before I can begin debugging the button.
 
I'm looking for something where I can test the palette doing regular Illustrator work and see debug messages, set breakpoints, etc. I've tried the old-school approach of just filling the code with 'alert("blah")'s but it doesn't work - my code reaches an

" if(app.activeDocument.selection.length){ alert(1);} else {alert(2);} "

and doesn't alert either of them, or give any error message.
 
If I was working in a browser, I'd just plonk in a "console.log( app.activeDocument.selection )" and browse the object structure to see what's going on, is there any Illustrator equivalent?

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Retaining Tool Palette Grouping

Apr 18, 2011

I am developing 'enterprise' tool palettes which i've put on a networked drive to which i have write permissions and the users have read-only permissions. Within these palettes, each palette has separators and Text titles to group the commands and these groups originally appeared on everyone's computer as i expected when i first made them available. But now when i add new commands to a palette on the networked drive, the new command appears on the correct palette, but at the bottom of the palette, on the user's computers.

I have made provisions for each user to create their own collection of palettes, which are saved on their own directory and, of course, they can do whatever they want with them. But i want to prevent them from re-organizing the enterprise palettes and more importantly, if i add a new command in palette "X" and locate it in group "y" of that palette, i want it to be in that location when the users view it.

Is there some way to make the enterprise palettes on their computers look like i arrange them?

View 5 Replies View Related

Paint.NET :: Filling Object While Retaining Lines

Jan 4, 2012

We're trying to change the blue brush stroke below, to orange while retaining the textures: [URL]

- The attached pic is the closest we've gotten by luck: [URL]

- we'd like to do away with the darker colors

- and we'd like to actually know what we're doing and be able to repeat it

The orange pic was done on photoshop (not on my computer). how I got to the result. Is this possible on paint.net (the only kind of software installed on my computer)

View 6 Replies View Related

AutoCAD Print / Plot :: Make Button For Toolbar Or Tool Palette?

May 17, 2011

I'd like to make a button for the toolbar or the tool palette that will print consistently every time I use it.

For an example, I want to click this button that has the parameters for ADOBE PDF, 11x17, Lanscape, a certain Plot style table, etc......

I want to make a button for each print setting I use.

HOW...HOW can this be done? my inquiring mind wants to know!!  

Having this little button will just me me that much more proficient, and ever bit of time certainly counts when under pressure to get out some drawings.

View 9 Replies View Related

Photoshop :: Missing Actions Palette Control Button...

May 1, 2009

I seem to be missing all of the control button icons in my Actions Palette. Can anyone tell me how to restore them?

View 1 Replies View Related

AutoCAD 2010 :: Esc Button Not Working To Deselect An Object?

Mar 7, 2012

the problem begun when i reset my Cad-2010 profile. I have checked my Keyboard, My Keyboard is fine but i there is any changed has been made in option setting which is cuse of my problem.

View 2 Replies View Related

AutoCAD .NET :: Change Object Name In Overruled Objects In Properties Palette?

Sep 20, 2011

I have some blocks which were overruled. Now I would like in properties palettes show some thing else  instead of" block reference "  for those overruled objects. Is it possible ?

View 4 Replies View Related

AutoCAD 2013 :: Properties Palette Not Working With Selected Object?

Aug 22, 2013

as the subject states, at some point (I believe after uninstalling autodesk 360), our properties tool pallete will not populate info for the selected object.  is there a fix other than re-installing from scratch?  The installation fixer didn't work, and I've had to re-install twice now for other issues with the software, so it's getting very costly/time consuming to just re-install for these problems.

View 9 Replies View Related

AutoCAD Architecture :: Properties Palette Shows Any Selected Object On Current Layer

Aug 13, 2013

Just starting to use 2014, and so far not so good.  I tend to keep the Properties Palette open and docked.  In 2014, if my current layer is 0, any object I select in a drawing shows as Layer 0 in the Design tab of the Properties palette.  If I change to a different layer, any object selected shows that layer in the Properties palette.    If I start a new drawing, enter WALLADD and draw a wall segment, the A-WALL layer now correctly appears in the Layer Manager, but when I select the wall, the Layer in Properties is the current layer, not the A-WALL layer it should have gone on.  Also, Quick Properties is on, but doesn't pop up anywhere.

View 5 Replies View Related

InDesign :: Get Object Styles Palette Back?

Mar 11, 2014

I use my Object Styles palette all the time. I moved it to one side so that I could use two different palettes. Instead of grabbing it to move it back I accidently deleted it. How do I get it back?

View 6 Replies View Related

InDesign :: How Can A Button Be Turned Back Into Regular Object

Feb 25, 2014

Once an object is converted to a button how can it be changed back (have the button properties removed?) There doesn't seem to be an obvious way to do this, but I can't imagine Adobe hasn't allowed for this...

View 3 Replies View Related

CorelDRAW Graphics Suite X6 :: Select Relative To Object Button

Oct 16, 2012

I select an object, then I select the Relative to object button:in the Property Bar, the X and Y aren't in  0.0 ".I have to deselect and reselect again the object and after that X and Y are ok.Same thing if I deactivate the Relative to object button:the X and Y show me  0.0 ".I have to deselect and reselect again the object and after that X and Y show me the real page's coordinate.

View 2 Replies View Related

AutoCAD .NET :: Adding Properties Palette To Custom Made Palette Set

Feb 2, 2012

Is it possible to add the Properties Palette to a custom made palette set in .NET? And how to do this?

View 3 Replies View Related

AutoCAD LT :: Enlarging Button Icons On Toolbars No Button Image Editor In CUI

Jan 2, 2013

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.

View 1 Replies View Related

AutoCAD .NET :: Delete Palette From Tool Palette

Dec 7, 2012

I wan´t to delete a palette from Autocad Tool Palette. How can I do?

View 3 Replies View Related

AutoCAD LT :: Printing And Retaining Lineweights?

Oct 21, 2013

I would like to print a drawing with its ctb. file to a format that allows me to import it into illustrator without losing the set lineweights in the original Autocad drawing.

I've tried it once using a pdf writer, but when imported into illustrator it reverts to one line weight for all the lines.

Is there a better way of retaining the assigned lineweights (per the embedded ctb file) ?

 will printing it as an .eps instead of pdf do? and how does one print to .eps?

View 1 Replies View Related

AutoCAD LT :: AutoSave Not Retaining Files?

Jul 10, 2013

I have Autosave set to 10min and the file location D:/Autodesk/Autosave, file extension .ac$. I see the progress bar appearing at bottom left, so I know the function is active. I had a situation yesterday where I inadvertently closed a drawing without saving the changes and thought I would be able to at least recover up to the previous 10min by renaming the last ac$ as a dwg; but when I looked in the directory there are no ac$ files, only .bak. I have just checked now and there is one ac$ file - for the currently open drawing. Why aren't the ac$ files being retained?

View 9 Replies View Related

AutoCAD LT :: Not Retaining Settings Or Commands

Feb 19, 2012

AutoCAD is constantly losing settings and commands that I give it. The Undo command is one of them. I'll set it to undo [ALL] and after a while (a couple of days maybe) I will find this command on a different setting. This has been happening to many other commands as well.

View 7 Replies View Related

AutoCAD Civil 3D :: Grading Against A Retaining Wall

Sep 8, 2012

I have a platform at level 13.275m and nearby there is a retaining wall at aprox. level 4.0m. 

For the wall i've made a surface using feature lines from EG till level 15.0m and then pasted into the EG surface to create the 'barrier' for the slope. But when i do the grading with the fill slope projection to surface, when it reaches the retaining wall section, the contour lines go crazy and if i do a quick profile, the fill slope line (obvious) is iregular, rather than a straight down line (2:1)  going from level 13.275m till it hits the EG.

I've attached a picture to show the problem better.

View 9 Replies View Related

AutoCAD Architecture :: Retaining Profile As Current?

Nov 14, 2013

I am using AutoCAD Architecture 2010

Everytime I open a session of AutoCAD, I must select my profile.

Is there a setting that would retain my profile as current?

View 1 Replies View Related

AutoCad :: How To Convert DWG File While Retaining Details

Apr 4, 2010

i have many drawings in dwg but wish to upload onto my website...how can I convert a dwg file and retain its detail so it can be the same on my web page....have converted dwg to jpeg tiff gifff etc but it loses detail

View 9 Replies View Related

AutoCAD Civil 3D :: MSE Retaining Wall Assembly?

May 27, 2009

MSE Retaining Wall subassembly? or any type of retaining wall subassembly that does NOT have a footing or where I can find one?

View 4 Replies View Related

AutoCAD Civil 3D :: Adding Retaining Walls To A Surface?

Aug 4, 2011

I need to do a cut/fill analysis not residential site and this site has like 6 retaining walls there is a 6 foot difference in grade.

My surface is not recognizing the grade change when I make the polyline into a wall breakline. 

View 9 Replies View Related

AutoCAD Map 3D :: Rebuilding Access Database But Retaining Links?

Oct 1, 2013

My company has an access database that has all of our service data on it. I am currently considering rebuilding the database because it is a database with one table and a million fields. I want to split the database up into separate tables with relationships. All of these tables would be linked based on the same key field Service_ID.

Now here is the hard part. The data would be in a one to many relationship with one record for service info and multiple records per service for pipe info. The data is currently linked to objects in AutoCAD Map 3d 2014 based on the Service_ID key field and a "service" link template.

If i rebuild this database, am I going to lose all of my links? or will i retain the links? Also, is there a way to automatically generate links based on the service_ID field? For instance there are 3 records of pipe information for 1 service. Previously all of these records would be in the same table, but now the tables are split. Since they have the same Service_ID as the Service information, will the links show up?

View 9 Replies View Related

AutoCAD Inventor :: Mirroring Assembly And Retaining Constraints?

Jul 12, 2013

I am atempting to mirror a large assembly, and noticed that not all of my contraints were retain, is there a way to make to mirror and retain all of the contraints?

View 2 Replies View Related

AutoCad 3D :: Create Solid Surface On Top Of Retaining Walls?

May 17, 2011

I cannot figure out how to create a solid surface on top of the retaining walls and also how to grade the transitions for the high to low points of the retaining wall. This would be so much easier for me in Solid Works

Untitled.jpg

View 9 Replies View Related

AutoCAD Civil 3D :: Adding Retaining Walls And Curbs To Surface?

Nov 9, 2013

I am having a lot of trouble adding retaining walls to my surface. I also have to add the curbs of parking lot.

I already have the surface. However I need to tell Civil3D to stop the contours at the retaing walls and not to try to tie them in to anything else. The closest I got was using wall breaklines and I got the top of the retaining wall to have the desired elevation. However, all the contours going to the retainig wall try to go around it and tie in to something else. This ends up creating weird contours and crazy slopes. 

Now for curbs, how do I tell Civil3D to jump 6" when it reaches the curb line?

View 2 Replies View Related

AutoCAD Civil 3D :: Fill Up From Retaining Wall To Existing Ground

Apr 11, 2012

I have a feature line as the top of a wall and want to grade up away from it to marry to existing ground.

View 1 Replies View Related

AutoCad :: How To Justify All Text Inside Of Block To Right Without Retaining Position

May 17, 2013

I am trying to align all of the text inside of a block and have it actually align the text instead of having it keep it original position (like when you use "Justifytext" command). For example: We use blocks for fire alarm devices that we insert into drawings. When the devices are inserted they look like this (Middle left):

15CD
TBD
TBD
1/4W

I can double click each line of these texts, have the eattedit window pop up, go to "text options" tab, click the drop down menu for "Justification:" and then choose my justification(middle right); then the text will actually move to align itself with my justification, causing my text to end up like this:

15CD
..TBD (Roughly like this, only perfectly straight vertically on the right hand side)
..TBD (ignore the dots, i had to insert them for the spacing to be correct for
1/4W this example)

When I type "Justifytext", select my block, choose my justification (Middle right), just the snap point moves to that justification without the text actually moving at all, causing my text to end up like this:

15CD
TBD
TBD
1/4W

View 9 Replies View Related

AutoCAD Civil 3D :: Rendering Retaining Wall - Large Surface On Top

May 3, 2012

I am in Civil3D 2012, and am trying to render a retaining wall we doing. I set up a corridor, surface, and profile, and have it working with plans and such, but when I try my hand at rendering it looks rather odd. The surface is fine, and I can choose materials on the vertical wall subassembly, but It just shows a paper thin object ever 25' and a large surface on top. Does the top of the wall need a feature line as well.

View 1 Replies View Related







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