Menu

Toon bijdragen

Deze sectie stelt je in staat om alle bijdragen van dit lid te bekijken. Je kunt alleen de bijdragen zien waar je op dit moment toegang toe hebt.

Toon bijdragen Menu

Berichten - EddyBeerke

#16
Citaat van: dreten op zo 22 01 2023, 12:25:35
Ik ben overgestapt op Mac en heb me dus heel wat kopzorgen op de nek gehaald...
Gecondoleerd  :lol:
#17
Wat ik zie is dat je de tabs boven je statusbar kan zetten door rechtsklikken op je tab -> "Dock above Status Bar".
#18
AutoCAD probleem / Re: mijn 1e macro
vr 20 01 2023, 14:32:18
Citaat van: matizje op di 20 12 2022, 15:03:00
hoe zou zoiets eruit komen te zien in LIsp dan, ga ik me daarin verdiepen

de manier zoals ik het nu doe met SHIFT+rechter muis geeft dit weer in het commandoscherm:

MOVE
Select objects: 1 found
Select objects:
Specify base point or [Displacement] <Displacement>:
Specify second point or <use first point as displacement>:
>>Enter new value for ORTHOMODE <1>:
Resuming MOVE command.
Specify second point or <use first point as displacement>: _from Base point: <Offset>: 50


Is dit misschien wat je wil?
Maak een lsp-file van onderstaand, laad het in Autocad en start het commando "mm"
;;;Move Multiple
(defun c:mm  (/ ss1 L1 L2)
  (setq ss1 (ssget))
  (while (setq L1 (getpoint "\nWijs Basis point (1) aan: "))
    (setq L2 (getpoint L1 "\nWijs Referentie punt (2) aan: "))
    (command "MOVE" ss1 "" L1 L2)
  ) ;_ end of while
  (princ)
) ;_ end of defun


#19
Dit is de link:
https://chat.openai.com/chat

Wat kan het:
De site kan van alles beantwoorden maar ook code schrijven.
Hier een voorbeeld:

Mijn vraag:
please write a vlisp code to draw a line in autocad

AI antwoord:
(defun c:line ( / p1 p2)
   (setq p1 (getpoint "Specify first point: "))
   (setq p2 (getpoint p1 "Specify second point: "))
   (command "line" p1 p2)
   (princ)
)

CiteerThis code defines a function called c:line that prompts the user to specify the starting and ending points of the line. It then uses the line command to draw the line between these two points.

To use this code in AutoCAD, you can type it in the command line and press Enter to run it. This will define the c:line function and make it available for use in your AutoCAD drawing. To draw a line, simply type line in the command line and press Enter. This will run the c:line function and prompt you to specify the starting and ending points of the line. Once you have specified these points, the line will be drawn in your AutoCAD drawing.

Keep in mind that this code is just an example and can be modified and expanded upon to suit your specific needs and preferences. For more information and examples of VLISP code, you can check out the AutoCAD documentation or search online for VLISP tutorials and examples.

Nog een voorbeeld:
please write a vba code to draw a line in autocad

AI antwoord:
Sub DrawLine()
   Dim p1 As Variant
   Dim p2 As Variant

   ' Prompt the user to specify the starting and ending points of the line
   p1 = ThisDrawing.Utility.GetPoint("Specify first point: ")
   p2 = ThisDrawing.Utility.GetPoint("Specify second point: ", p1)

   ' Draw the line between the specified points
   ThisDrawing.ModelSpace.AddLine p1, p2
End Sub

CiteerThis code defines a subroutine called DrawLine that prompts the user to specify the starting and ending points of the line. It then uses the AddLine method to draw the line between these two points in the current drawing.

To use this code in AutoCAD, you can open the VBA editor and paste the code into a new module. This will define the DrawLine subroutine and make it available for use in your AutoCAD drawing. To draw a line, simply run the DrawLine subroutine in the VBA editor. This will prompt you to specify the starting and ending points of the line. Once you have specified these points, the line will be drawn in your AutoCAD drawing.

Keep in mind that this code is just an example and can be modified and expanded upon to suit your specific needs and preferences. For more information and examples of VBA code, you can check out the AutoCAD documentation or search online for VBA tutorials and examples.

Nog een:
please write a C# code to draw a line in autocad

AI:
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.Geometry;

namespace DrawLine
{
    public class Line
    {
        [CommandMethod("DrawLine")]
        public void DrawLine()
        {
            // Get the current document and database
            Document doc = Application.DocumentManager.MdiActiveDocument;
            Database db = doc.Database;

            // Start a transaction
            using (Transaction trans = db.TransactionManager.StartTransaction())
            {
                // Open the Block table for read
                BlockTable bt = trans.GetObject(db.BlockTableId, OpenMode.ForRead) as BlockTable;

                // Open the Block table record Model space for write
                BlockTableRecord btr = trans.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForWrite) as BlockTableRecord;

                // Create a new line
                Line line = new Line(new Point3d(0, 0, 0), new Point3d(10, 10, 0));

                // Add the line to the block table record
                btr.AppendEntity(line);

                // Save the new object to the database
                trans.AddNewlyCreatedDBObject(line, true);

                // Save the changes and dispose of the transaction
                trans.Commit();
            }
        }
    }
}

CiteerThis code defines a class called Line that contains a method called DrawLine. The DrawLine method creates a new Line object using the Point3d constructor and adds it to the current drawing.

To use this code in AutoCAD, you can compile it into a .NET assembly and load it into AutoCAD using the NETLOAD command. This will define the DrawLine command and make it available for use in your AutoCAD drawing. To draw a line, simply type DrawLine in the command line and press Enter. This will run the DrawLine command and draw a line in your AutoCAD drawing.

Keep in mind that this code is just an example and can be modified and expanded upon to suit your specific needs and preferences. For more information and examples of C# code, you can check out the AutoCAD documentation or search online for C# tutorials and examples.
#20
AutoCAD probleem / Re: Block probleem OPGELOST
vr 09 12 2022, 09:53:49
Citaat van: julien op di 11 01 2022, 09:54:14
Dat heb ik onmiddellijk gedaan.
De nieuwe insert is zo traag dat het soms compleet onwerkbaar wordt.
Meer tijd om koffie te halen???
#21
Autolisp / Re: lisp en dcl
zo 13 11 2022, 15:29:53
Heb je Jeffery P. Sanders ook gevraagd of in ieder geval gemeld dat zijn voorbeeld niet werkt?
Heb ik ooit wel gedaan en kreeg netjes een reactie terug dat hij het zou gaan aanpassen.
#22
AutoCAD probleem / Re: Block probleem OPGELOST
ma 10 01 2022, 14:44:13
Citaat van: bart op vr 23 07 2021, 16:42:39
Ja dat klopt
als je insert ingeeft op de commandline krijg je een ander scherm dan met de voorgaande versie
CLASSICINSERT geeft het oude vertrouwde venster weer.
Je kunt het aanpassen in je PGP-file.
Aanpassen van jou PGP-file kun je bv doen met ALIASEDIT van de expresstols
#23
Zowel boven in de ribbon (Layout -> Layout Viewports) als rechts onderin kun je de viewport locken of  unlocken.
Je zou natuurlijk ook zelf deze commando's weer in je rechtsklik menu kunnen terugzetten met CUI.
#24
Citaat van: ArnoL op wo 19 05 2021, 21:19:52
...Het probleem is nu dat er "spontaan" blocks in mijn lijst verschijnen (zoals bv een "dot") die ik niet gemaakt heb, maar die ik ook niet met purge kan verwijderen?
...

Zijn het deze blocks?: "_Dot", "_DotBlank" en "_Oblique"
Die zitten in elke tekening en zijn de symbolen die bv bij de maatvoering gebruikt worden.
#25
Citaat van: julien op wo 19 05 2021, 11:28:15
...
Waarom maak je een dimstyle aan per schaal?
Daarvoor hebben we al enkele jaren annotative maatvoering:
https://cadsite.be/cursus/les_8/
Ik maak het per schaal omdat ik met een standaard werk (met een tool)
Omdat ik dat hele annotative zooi erg vervelend vind werken gebruik ik het liever niet.
Liever een laag en style extra dan niet weten waar of hoe dat het annotative object er uitziet.
#26
Citaat van: gery op ma 10 05 2021, 13:41:54
Het vinkje bij "Scale lineweights" in de plotinstellingen van modelspace is in casu de boosdoener (zie bijgevoegde afbeelding).
Dit vinkje kan je weghalen op volgende manier:

  • open een (goede) tekening waarbij deze optie in modelspace niet aangevinkt is
  • maak in die tekening een page setup aan en geef die een naam
  • open de foute tekening en importeer de net aangemaakte page setup uit de goede tekening, en activeer deze page setup
  • pas eventueel andere plotinstellingen aan
Alternatief: plotten via paperspace
Netjes! was er niet op gekomen...
Je kunt inderdaad niet het vinkje uitzetten in modelspace... Bug??? Meld het ook gelijk even bij Autodesk zou ik zeggen.
#27
AutoCAD probleem / Re: Block probleem OPGELOST
ma 03 05 2021, 10:08:21
Citaat van: HenkdeKarper op do 29 04 2021, 18:32:14
Thnx Eddybeerke, dat was em!!!!

:D
heel erg blij hier!
Jij blij, ik blij... Allemaal blij  :lol: :wink:
#28
AutoCAD probleem / Re: Block probleem
wo 28 04 2021, 17:11:01
Zou dit een poging kunnen zijn om de nieuwe blockpalette te tonen?
Gebruik eens het commando: classicinsert
#29
Algemeen / Re: Inventor of Solidworks
wo 14 04 2021, 16:08:43
Citaat van: Pat op di 13 04 2021, 17:57:08
Kan men Inventor en Solidworks op eenzelfde PC instaleren?

Gr
Patrick
Ik zou zo niet weten waarom het niet zou kunnen.
Kijk ook eens hier:
https://www.buildercentral.com/inventor-vs-solidworks/
Citaat van: Welles op di 06 04 2021, 17:35:07
Ik heb wat ervaring met AutoCAD, maar ik ben nieuwsgierig naar andere tekenprogramma's.
Welk zou het meest aangewezen zijn om aan te leren?
Inventor of Solidworks?

De vraag terug is: Wat wil je ermee?
Als je alleen maar een 3d model wil renderen adviseer ik Blender: https://www.blender.org
Deze is gratis te gebruiken en er tal van instructiefilmpjes op youtube te vinden.
Een paar mooie voorbeelden van mij vind je hier:
https://www.instagram.com/explore/tags/eddys3dmodel/



yoin