AutoCAD .NET :: Insert Block From External DWG File / Specify Insert Point By Click Mouse

Apr 2, 2013

I write a program, this program needs to insert some standard illustrations. I made these standard illustrations into different blocks. And I store these blocks in a dwg file. Everytime I need to insert some illustrations, I just click the mouse on the current drawing, I want the illustration inserted. These means the following points:

(1) Import the blocks to the current drawing, if the blocks have already been imported, then do nothing.

(2) Specify the insert point by clicking the mouse, and I want the block's insert point to coincide with the mouse clicking point.

View 1 Replies


ADVERTISEMENT

AutoCAD Visual LISP / AutoLISP :: Insert Point At Block Insert Point

Sep 26, 2012

trying to insert point instead of block.

(setq blok (entget (car (entsel))))

(setq point (cdr (assoc 10 blok)))

(setq XX (rtos (car point) 2 20)) ;; x koordinata bloka

(setq YY (rtos (cadr point) 2 20)) ;; y koordinata bloka

(setq ZZ (rtos (caddr point) 2 20)) ;; z koordinata bloka

(command "point" xx,yy,zz) is not working

!xx="5582453.414999999" but when i (atoi xx) i get 5582453 no dedimals...

how to create valid insertation point from xx, yy and zz?

View 6 Replies View Related

AutoCad :: Insert Block - Switch Between Base-point And 0,0,0 Point?

Apr 29, 2013

I'm inserting blocks into my drawing and the block has a basepoint and a 0,0,0 point. The CAD guy who usually works with me is off today but he has a keyboard method of switching between the 2 points when inserting the block.

Its a fairly straight forward thing on his keyboard, nothing he has set up but standard in autocad.

I've had a try hitting a few keyboard buttons this morning but can't seem to do it.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Insert Point At List Block And Dynamic Block

Apr 18, 2013

I am learning autolips and i found  a problem that i can´t solved.
 
(vl-load-com)(defun c:pmb ( / ss ent pt )(prompt "
selec block : ")(setq ss (ssget '((0 . "INSERT")))) (setq ent (ssname ss 0)), (setq pt (cdr (assoc 10 (entget ent)))) (command "point" pt))
 wich this code you select one block and insert one point at insert point´s block.

which this other code yo select all block and insert all  point.... but in one block
 
(vl-load-com) (defun c:pmb11 ( / sele cod bloque nbloque lista pt ) (prompt "
block: ") (setq sele (ssget ( List'(0 . "INSERT"))) Cod 0 )cod (1+ cod) (repeat (sslength sele) (setq bloque (ssname sele cod)) (setq pt (cdr (assoc 10 ( entget bloque)))) (command "punto" pt) );repeat ) 

View 4 Replies View Related

AutoCAD Civil 3D :: Click Insert Tab-Block Definition Panel-Manage Attributes

Oct 2, 2013

2014.  In help, it says to "Click Insert tab-Block Definition panel-Manage Attributes"  In my display, when clicking the Insert tab, I only have a "Block" panel, not a "Block Definition" panel.  Trying to get to the Sync command.

View 2 Replies View Related

AutoCAD 2013 :: Block Editing - Redefining Insert Point

May 1, 2013

In previous versions of AutoCad I would just double click on a block do my changes click the save changes button and then a save dialogue would come up with an option to change the insert point.  Did this option go away in 2013 AutoCAD?  I do not get this option anymore after I finish editing a block?  This is very useful.  Why would this go away?

View 6 Replies View Related

AutoCAD 2010 :: Block Insert Point Is Different On Drawing Than On Xref

May 4, 2012

I have a drawing where I have placed all of my natural gas piping.  I have all of the annotative blocks set to 3/32"=1'-0" and 1/32"=1'-0" scales.  They are both correctly displayed in this drawing. 

When I xref this drawing into another about half of the 1/32" blocks show up correctly.  The other half are shifted to the right off of the plan.  All of the 3/32" blocks show up correctly.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Insert Point At Every Block?

Apr 19, 2013

I need a routine that inserts a point at the insert point or block named "Insert_Point" at every block in the file. The routine could use the current layer, which would be set prior to starting the routine. If it could request the user for the PDMode value and PDSize that would be great too. This will assist me in creating block libraries.

View 9 Replies View Related

AutoCad :: Copy Paste With Base Point / Sometimes Block Insert But Its Not Showing

May 28, 2013

I have been using copy paste with base point on block from drawing to drawing but sometimes the block insert but it is not showing. I go to insert block is there but does not show in the drawing. Then tried to purge it and it does not let me because it is in the drawing but I can find it any where. Then I tried to do the insert block look for the block and inserted as a block and the same result.

View 3 Replies View Related

AutoCad 2D :: Insert Block From Excel With X&Y Coords / Rotation And Point Number

Dec 3, 2013

I have excel tables that contain 4 columns of data.

The Y co-ords pf the required object
The X co-ords pf the required object
The rotation of the required object
The object number

What would I need to do to insert a block at the coordinates to the rotation shown then have a leader with the point number labeling the block (but the text not be rotated to the angle of the main block.

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Insert Block With Pick Point On Line Prompt?

May 8, 2013

I have a lisp routine that I would like to add to. Right now when running the macro the user is not prompted to "Pick Point On Line" in this example

(command "insert" blk "s" var1 pause pause))

I have added the line

(setq pt1 (entsel "Pick Point On Line "))
(command "insert" blk pt1 "s" var1 pause pause))

but the command doesn't seem to like my PT1 value

BLK and VAR1 are set in another lisp routine.

View 9 Replies View Related

AutoCAD 2010 :: Dynamic Block Grips - Block Does Not Change When Insert In Another File

Oct 28, 2013

I have created a dynamic block with a stretch, flip and rotate.  Everything works great in its file.  When I insert it in another file, the grips move but the block does not change.

AutoCAD 2014

View 2 Replies View Related

AutoCAD .NET :: Insert Block From Another File?

Jul 5, 2012

I am inserting a block from another file to the current drawing file.

I am using C#.Net.

My block gets added into the blocktable record of the current file, but while inserting the block using the "Block" command in AutoCAD its shows an error "The Existing Block has not been modified" I have attached a screenshot of the message i am getting.

I want to insert the block automatically to a user specified location.

View 5 Replies View Related

AutoCAD .NET :: Command For Insert Block With File Name?

Mar 22, 2012

the command  for Insert block with file name.

using .net code (SendStringToExecute)

View 3 Replies View Related

AutoCAD .NET :: Insert Block To New DWG File At Exact Location?

Jul 18, 2011

It's the part of project: I need read some named Blocks from a sample DWG and copy (clone) them (one at a time) to a new drawing.

There are 2 possible way to do it:

1. Database.Insert  - it does allow you pass in location point but it takes whole DWG file not blocks inside the whole DWG;

2. Database.WblockCloneObjects - it takes blocks as parameter but it doesn't pass in with location information you want them there.

View 2 Replies View Related

AutoCAD .NET :: Insert Dynamic Block From File And Change Visibility States

Dec 19, 2011

I am trying to insert a Dynamic Block and change it's Visibility State. I can insert the block, and the visibility state changes, however, if I manually try to change it after, it does not change, even though the value has changed. My code executes and returns no errors, so I am assuming that I have done something wrong, or missed something out.
 
public class MyCommands { [CommandMethod("MyGroup", "Bolts", "MyCommandLocal", CommandFlags.Modal)] public void MyCommand() // This method can have any name {

[Code].....

If I insert my block manually, I can change the states and it works fine, but the code seems to break the block.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Insert Block To Points Taken From Txt File

Jun 28, 2013

I got this code in a web trawl to insert a block to points taken from a txt file......

its coming back with an error as follows:

; === Top statistic:
; Function definition (with number of arguments): ((C:INSERTBLOCKS . 0))
; Check done.

What does this mean and how can I fix it.

(defun c:insertBlocks (/ txtFile xyData expertVar attreqVar)(setq expertVar (getvar "expert"))
(setq attreqVar (getvar "attreq"))
(setvar "expert" 2)(setvar "attreq" 0)
(setq txtFile (open "c:\cad\textfile.txt" "r")) ;

[Code] ......

View 3 Replies View Related

AutoCAD LT :: Insert External Reference

Jan 31, 2013

I am using AutoCAD LT 2013. I always start my drawings at a common point 0,0,0. When I attach an external reference, I want the insertion point to be 0,0,0 so that my drawings overlap each other. However, when I attach, the drawing is 596'-10", 345'-11 1/4" every time! Am I missing a setting or extra step?

View 1 Replies View Related

AutoCAD 2013 :: How To Insert A Point Before First Point

Apr 3, 2013

I want to add a point after the last point of a polyline. But this point really is the first point and the command insert vertex really insert a new point.So, a solution ,  reverse the polyline to insert points after the last vertex. 

Nobody thought ever to offer a insert_first and add_last  commands ?

View 9 Replies View Related

AutoCad :: Insert OS Tiles Into A Drawing Using Insert XRef Command

Aug 2, 2013

I am trying to insert OS Tiles into a drawing using the insert x-ref command. I have managed to insert 192 tiles but still need to add 29 more tiles to complete. When I try to insert another x reference AutoCAD just goes into a continual loop. Have to force AutoCAD to crash after ten minutes.

I am using AutoCAD 2014 MAP and have just had a new system built (i5 processor, 8GB RAM).

View 9 Replies View Related

AutoCAD 2013 :: Break At Point Don't Work / When Right Click On Mouse

May 8, 2013

right clicking the mouse normally repeats the previous command. In this case I right click to repeat the "break at point" command. Instead of getting the break at point command, I always get the "break" command.

View 2 Replies View Related

AutoCAD Inventor :: Get Point Location Of Mouse Click Using ILogic

Mar 4, 2013

I'm trying to get the point location of a mouse click in an Inventor drawing using an iLogic Rule. Any examples of using mouse events in iLogic?

View 9 Replies View Related

AutoCad :: Insert Dynamic Block From File With Multiple Dynamic Blocks

Jul 16, 2010

I have a drawing ("SURUBURI.dwg") with several dynamic blocks ("M12", "M16", "M18" ... an so on...). I want to insert in my current drawing, one of the blocks from SURUBURI.dwg, for instance the block named "M12".

For that i tried creating a new command "INSERT_M12" that has the following script :

^C^C-INSERT; "I:/Ionut Mihaila/Goodies/SURUBURI.dwg/M12"

Now obvious that doesn't work, but i think it shows clearly what i want to accomplish. So is there an other way to do this?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Insert A Block / Explode And Rename Nested Block With Suffix

Nov 30, 2012

I have a block that i want to insert several times and revised each one to be different to do this i would have to insert it and rename the blocks that come in and then reinsert i would like to insert and have a lisp explode the main block and rename the other 2 blocks with a suffix at the end depending on how many times its in the drawing... can this even be done? My original block name that will be first inserted is "BENT PULLEY NOTES" it needs to explode after i drop it in and then there are 2 blocks within that called "Bent Pulley" and "Bent Pulley DYN" that i was hoping to keep the names but add a number at the end depending on how many are in the drawing already...

here is a lisp that i have found... it would work if i didn't have nested blocks and only wanted the one block to be insert and not explode...

(defun c:Test (/ e i name Bname )
(setq e nil)
(command "_.-insert" "Drawing1.dwg" pause "" "" "")
(if (setq e (entlast))

[Code] .......

View 9 Replies View Related

AutoCAD .NET :: Insert Block And Drag Jig Hiding Inserted Block At 0,0

Apr 11, 2013

I have a pallete button that inserts a block then a drag jig to position it. The block is first inserted at 0,0 and dragged.

The block at 0,0 remains visible while a "duplicate" block is dragged. Is there a way to hide the original?
 
Insert block then calling the drag jig..
AddViewBlock(New Point3d(0, 0, 0), 0, ColorIndex, trans) psr = ed.SelectLast() DragView(psr.Value, "Bar Insertion Point")
 
In the DragView procedure I have:

 Public Sub DragView(ByVal SS As SelectionSet, ByVal sPrompt As String)
'....
Dim ppr As PromptPointResult = ed.Drag(SS, vbLf & sPrompt, New DragCallback(AddressOf MyDragCallback))

View 4 Replies View Related

AutoCAD .NET :: Insert Dynamic Block And Position And Stretch The Block?

Apr 6, 2013

I am trying to insert a dynamic block and position and stretch the block, using the linear parameters, depending on values entered into a form.

I managed to create a form that would draw a series of boxes. And i managed to create a routine that would insert a block and size it depending on fixed values but i can't link the 2 together.

Win 7 Pro 64bit, Dell Precision M6500

View 8 Replies View Related

Photoshop :: How To Insert A Click Able Web Link

Oct 24, 2013

How can i insert a click able web link ?

View 1 Replies View Related

AutoCad :: How To Delete Block From Insert Block List

Oct 20, 2007

I am using Autocad 2007 I made several blocks with att. And I use this drawing and copy it to the samples/design center folder so that I can see the blocks that I created on the Design center window for use on different other drawings.

My problem is that if I make a cange on the ORIGINAL block drawing how can I update the inserted blocks on the other drawings? I try to delete the block from the local drawing insert block list (is this possible?) to paste the block again with the new changes, but somehow even when I grab the new modified block to inserted again when I do it, it takes the shape of the old version!

View 6 Replies View Related

AutoCad :: Create Block To Insert On Title Block

Oct 26, 2012

Is it possible to create a block to insert on our title block that will populate itself with a list of drawings and names?

I know this is possible through the use of LISP and the Sheet Set Manager, but could this be done through a combination of attributes and fields (we want the same functionality in LT).

View 1 Replies View Related

3ds Max Modeling :: Insert Loop Edge By One Click

Oct 9, 2011

How to insert loop edge by one click... like Autodesk maya..

View 1 Replies View Related

AutoCAD .NET :: Insert Block Reference Using Block Name

Nov 17, 2012

Drawing contains a block with "BlkName". I want to insert blockreferences of this existing block using .Net. All shows how to insert a new block and then use the BlockID returned by the insert function. In my case I only have the block name and there is no Block id. How to get it or how to create a block reference of an existing block?

View 3 Replies View Related







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