Quantcast
Channel: Autodesk India Community aggregator
Viewing all 1680 articles
Browse latest View live

AutoCAD Customization: .NET: Modfiy Profile View Direction

$
0
0

For Civil 3d 2013, im looking for a method to change the Profile View Direction of a Profile View Style in VB.NET.


AutoCAD Customization: .NET: Keyword dropdown list

$
0
0

Is there a way to force enable the PromptKeywordOptions dropdown list that appears in the drawing pane of newer versions of AutoCAD?

 

For some reason it appears on some cases and not others. Exactly the same code and I can't figure out why it dosn't.

 

Also, some of our computers don't seem display the dropdown list at all. Not the right forum but is there a manual setting to enable that?

AutoCAD Customization: Autodesk ObjectARX: Standalone ObjectARX application hosted in windows service, is it possible?

$
0
0

Hi,
We are trying to write a windows service and manipulate DWG files there. In our computer we have already AutoCAD installed. 
It seems with ObjectARX , it is just possible to write .Net dlls which will be hosted in AutoCAD application not any standalnoe application.Did we get it right?

we know about RealDWG but the problem  is that we also need ability to plot(save) manipulated files, which is not possible with RealDWG.
Is there any other solution for writing a standalone application can manipulate and plot( pdf) DWG files?
Is there any solution with AUTODESK product for our problem?

Thanks .

AutoCAD Customization: Visual LISP, AutoLISP and General Customization: turn on/off annotative

$
0
0

Hi Guys,

 

when a text is selected, in properties palette the Annotative field can be turned on/off  - how can i do it programatically?

 

activex doesn't not have a propertiy for it. i presume it is in xrecords but could not find it.

 

 

thanks in advanced

Moshe

 

 

AutoCAD Customization: Visual LISP, AutoLISP and General Customization: Multileader Block Attributes

$
0
0

Entity name of  MULTILEADER they have 3 (assoc 10 ) the first (10 4.11 7.0 0.0) is end points to the tab by the dimenson the next one (10 3.75 7.0 0.0) is the other end point of the tab and the last one (10 2.75 6.0 0.0) is to where the arrow head is how do you have it get it pick the second and third 10 this will only pick the first one (setq pt1 (cdr (assoc 10 (entget (car ML))))) 

AutoCAD Customization: Visual LISP, AutoLISP and General Customization: detect intersection of line and circle

$
0
0

how do you detect the intersection of a line and circle or arc

AutoCAD Customization: .NET: I want to read data from a DWG excel file using C#.

$
0
0

this dwg file data reading with c#?

AutoCAD Customization: Visual LISP, AutoLISP and General Customization: Where is the developer documentation in map 2014?

$
0
0

I've just downloaded autocad map 2014, but I can't find the developer documentation. I can find some crap in the general help referencing lisp and vba, but no clearly organized developer documentation. In the previous versions there used to be an acad_devxxx.chm  file, that was perfect for the job, but I can't find anything similar here. Do I really need to install an earlier version and copy the file from there?

 


AutoCAD Customization: .NET: How can I insert rasterImage but not depend on the ori file outside?

$
0
0

How can I  bind the rasterImage as part of dwg file not depend on the ori file outside?

I use the imageattach order, However  when i delete the ori image or send the dwg file to others

the image is wrong.  How can i solve it ? Thanks.

AutoCAD Customization: .NET: How can I show one Entity middle of the screen using code

$
0
0

I want to show one entity middle of the screen and highlight it? is there any way? Maybe use zoom?

AutoCAD Customization: Visual LISP, AutoLISP and General Customization: Retrieving # of entities in a dynamic block ?

$
0
0

I am modifying stuff in a dynamic block insert entitity. There is no "endblk" entity at the end of these definitions and I need to cycle through every entity within the block definition. When it gets to the last entity,  I get an error because you cannot entnext passed the last entity. There are 2 things I could use help with:

 

1. How to retrieve the # of entities in a block without cycling through it.

 

Or

 

2. A quick lesson in the *error* function, I cannot figure out how to implement this. I basically want to to say:

(if (entnext myent)) returns a error, don't abort & continue on.

 

Is this possible ?

 

Thanks

AutoCAD Customization: Visual Basic Customization: Controle de Vba

$
0
0

Boa noite pessoal eu trabalho com vba e gostaria de saber se é possivel no momento de rodar o programa fazer con que ele possa ler o ip do computador que está rodando, e se for igual ao que foi determinado então execute senão ele não execute o programa.

 

Aguardo alguma sugestão, e desde já agradeço

AutoCAD Customization: Autodesk ObjectARX: How can I make a startUp Exe for Startup AutoCAD

$
0
0

I have dev a set of arxs programs,Now I want to develop a startUp.exe which can startUp AutoCAD and Let it search for acad.rx file in the folder where the startUp.exe located.

 

the Arxs that acad.rx file contains is also in the same folder.

 

More details or code will be prefer.

AutoCAD Customization: Visual LISP, AutoLISP and General Customization: Can anyone please share the iwan.shx font?

$
0
0

I really need this font "iwan.shx" please share it with me if you have it. It is supposed to be in Arabic language or something like that.

 

Thanks in advance...

AutoCAD Customization: Visual LISP, AutoLISP and General Customization: Data Extraction from Polylines and Arcs

$
0
0

¿There is a AutoLISP for extract START and END coordinates in X, Y, and Z planes, and extract length of Polylines and Arcs.?

 

Thanks 


AutoCAD Customization: Visual LISP, AutoLISP and General Customization: help with closing file

$
0
0

Hello everyone,

here I have some code that I need help with, cause sometimes when exiting the command ACAD doesn't close the file and hence I have an empty file which I can't even delete until closing ACAD at which time it also closes the mentioned file and writes data in it, so I would need some optimization of code so cad would close the file whenever one would break the command, thx

 

(defun c:lp (/ f a numt)
(setvar "cmdecho" 0)
(command "dimzin" 0)
(setvar "cmdecho" 1)
(setq f (open (getfiled "Text File" "c:/Users/tvargek/Desktop/" "txt" 5) "a"))
(while (setq numt (ENTGET (CAR (ENTSEL "\nSelect point number: "))))
(if (or (= (cdr (assoc 0 numt)) "ATTRIB")
(= (cdr (assoc 0 numt)) "TEXT")
(= (cdr (assoc 0 numt)) "MTEXT")
)
(progn
(setq a (getpoint "\nSelect point: "))
(princ (cdr (assoc 1 numt)) f)
(princ "," f)
(princ (rtos (car a) 2 3) f)
(princ "," f)
(princ (rtos (cadr a) 2 3) f)
(princ "," f)
(princ (rtos (caddr a) 2 3) f)
(princ "," f)
(princ "\n" f)
)
(PROGN
(close f)
(quit)
)
);_ end of if
) ;_ end of while
(close f)
) ;_ end of defun

(princ
"\nList points...Copyright © by TOMISLAV VARGEK...Osijek,Croatia...\n...Type LP to start..."
)

(defun *error* (msg)
(close f)
)

AutoCAD Customization: Visual LISP, AutoLISP and General Customization: Express Tools Troubleshoot

$
0
0

 

Hi all,

Please follow these easy step to troubleshoot some possible issues with the Express Tools:

 

1. Reinstall the “Express Tools”

 

1.1.  Uninstall a program 

1.1.1.      Press Windows key+R, in the run dialog box type: control appwiz.cpl
OR

1.1.2.      Control Panel-> Uninstall a program

1.2.  Select the “AutoCAD 2XXX” icon and click on “Uninstall/Change” button

1.3.  Once the setup dialog box will appear click on "Add or Remove features"

1.4.  Uncheck (if is checked) the option relative to "Express Tools" then click on “Update”

1.5.  Repeat the steps from 1.1 to 1.3 and then check the option relative to "Express Tools" then click on “Update”

 

2. Check the “Express Tools” Tab

 

2.1.  Run AutoCAD, the tab "Express Tools" should be visible, if not:

2.1.1.     On the AutoCAD command line run the command EXPRESSMENU
If still not visible

2.1.2.      Right click on the “Home” tab -> Show Tabs -> Express Tools
If still not visible or the express tools tab is not shown on the list

2.1.3.      On the AutoCAD command line run the command _MENULOAD

2.1.4.      Click on browse and go to the folder (should be already on the “Support” folder)

2.1.4.1.          Windows XP:
C:\Documents and Settings\<<your_username>>\Application Data\Autodesk\AutoCAD 2XXX\R XX.X\enu>Support

2.1.4.2.          Windows 7:
C:\Users\\<<your_username>>\AppData\Roaming\ Autodesk\AutoCAD 2XXX\R XX.X\enu>Support

2.1.5.      Open the Acetmain.cuix ->Load

2.1.6.     The “Express Tools” Tab now should be visible

 

3. Run an “Express Tools” Command

 

3.1.  Click on any “Express Tools” button, the command should run. If the command doesn’t work and if the “unknown command” is shown on the command line then:

3.1.1.     On the AutoCAD command line run the command _APPLOAD

3.1.2.     Browse to the folder c:\Program files\Autodesk\AutoCAD 2XXX\Express

3.1.3.     And load the acettest.fas and acetutil.fas
If still not working

3.1.4.     Make sure that in the “Support File Search Path” and “Working Support File Search Path” in the AutoCAD option->Files tab, the folder “C:\program files\autodesk\autocad 2013\express” is present

 

If the above solutions didn’t help, please:

 

AutoCAD Customization: .NET: Plot to plt file using a system printer

$
0
0

Hi,

 

In our drawings we have a layout with a view port and tittle block.

Default printer set for that layout is "dwg to pdf.pc3" and paper is "ISO A3".

 

I had to plot this layout [extence] to a plt file for the use of our Production ERP.

We had to print to a specific windows printer with paper size A3.

We use to do it in VBA with the bellow code.

How to do it in .Net

--------------------------------------------------------------------

Public Function BetsyPlot2() As Boolean


    Dim Plot As AcadPlot
    Dim alayout As AcadLayout
    Dim lowerLeft(0 To 1) As Double
    Dim upperRight(0 To 1) As Double
    Dim retval As Boolean
    retval = flase



    For Each alayout In ThisDrawing.layouts
        If alayout.Name = "Betsy" Then
            RedrawViewPort
            ThisDrawing.ActiveLayout = alayout
            ThisDrawing.SetVariable "ANNOALLVISIBLE", 1
            lowerLeft(0) = 0
            lowerLeft(1) = 0

            upperRight(0) = 400
            upperRight(1) = 275

            alayout.SetWindowToPlot lowerLeft, upperRight
            alayout.PlotType = acWindow
            'alayout.UseStandardScale = True
            alayout.StandardScale = acScaleToFit
            'ThisDrawing.ActiveLayout.PlotRotation = ac270degrees
            alayout.ShowPlotStyles = False    'if it is true this may cause the layout become black & wite
            ' MsgBox ("sss")
            Set Plot = alayout.Document.Plot

            ' Plot.DisplayPlotPreview acPartialPreview
            ThisDrawing.SetVariable "BACKGROUNDPLOT", 0
            Call CreateDirectory(Trim(Me.txtFileNo.Text), BasePath)
            retval = Plot.PlotToFile(BasePath & Me.txtFileNo.Text & "\" & Me.txtDwgNo.Text & ".plt", comboPlotPrinter.Text)
            BetsyPlot2 = retval
            Exit Function
        End If
    Next alayout
    MsgBox ("Betsy layout not found in the drawing!")
    BetsyPlot2 = retval
End Function

--------------------------------------------------------------------------------------------------------------------------------------------------

Regards,

Shijith

AutoCAD Customization: Visual LISP, AutoLISP and General Customization: Need help with QR code lisp file

$
0
0

This is not a new topic, but I can't find any posts related to it in this forum.

 

I don't know what I'm doing wrong, but I obtained the lisp "qrcode" from http://www.swisscad.com/products.php?lang=en&product=qrcode but it seems that it's not creating the qrcode.dwg block as I'm getting an error in the ACAD text box saying "cant find file in search path".  It then lists all my support file paths.  It looks like the lisp is trying to insert a block before it's even been created.

 

I've searched the net for a fix or better lisp, but what amazes me is that there is next to nothing on these forums on the topic, and this lisp is about a year and a half old!

 

Thanks

AutoCAD Customization: Visual LISP, AutoLISP and General Customization: Question about Text Window

$
0
0

Hi all,

 

I have a question about displaying long lists of data from Autolisp in AutoCAD 2014. I have a function that Lee Mac helped me develop a while back to read dynamic block settings details and report them to the text window. My dynamic blocks have a large amount of data, sometimes having 30 properties to report. The function cycles through the various dynamic block parameters and lists their current settings as well as the allowed settings and other nuggets as well. One problem I am trying to come up with is how to get the text screen to come up automatically like it did in AutoCAD 2011. I can get it to come up in AutoCAD 2014 if I hit ctl+F2, but I could use it to come up automatically again as it did in AutoCAD 2011. Does anyone know if this can be done like it used to work with (textscr)?

 

Additionally, I would love to have this at least take me to the top of the list - it always displayed the screen at the end of the list and users have to scroll from the bottom of the data upwards.

 

;;;from Lee Mac on the Autodesk forums as a reply to my question
;;;modified by Rapidcad 12-20-11 for TGW
;;;to just display dumps from properties we want to see
(defun c:dbinfo ( / ent obj props )
  (vl-load-com)
    (if
        (and
            (setq ent (car (entsel "\nSelect Dynamic Block: ")))
            (eq "AcDbBlockReference" (vla-get-objectname (setq obj (vlax-ename->vla-object ent))))
            (eq :vlax-true (vla-get-isdynamicblock obj))
        )
        (progn
            (setq props
                (vl-remove-if
                    (function
                        (lambda ( prop )
                            (setq prop (strcase (vla-get-propertyname prop)))
                            (or
                                (eq "ORIGIN" prop)
                                (eq "POSITION" (substr prop 1 8))
                            )
                        )
                    )
                    (vlax-safearray->list
                        (vlax-variant-value (vla-getdynamicblockproperties obj))
                    )
                )
            )
            (mapcar 'vlax-dump-object props)
    (princ)(textscr)    )
      (alert "\n You'll need to pick again - please select a DYNAMIC block.")
    )
   
)

 

Thanks in advance..

 

Ron

Viewing all 1680 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>