Author Topic: Copy, Array and Mirror Commands.  (Read 1233 times)

medina19678

  • Newbie
  • *
  • Posts: 2
    • View Profile
Copy, Array and Mirror Commands.
« on: June 05, 2017, 05:53:30 pm »
First of all, I want to congratulate you for the time and effort put into Babacad software development.
Testing some commands, I realized that (at least in my case), the copy command only reaches the part where it asks for the source point to copy and stops; in the case of the array and mirror commands, those come to the end, but do not regenerate the "Z" coordinate.
Trying to program my own "Copy" code, I have access to entities with (entget (cdr (entsel))) and I realized that I do not get that coordinate with code even the properties bar shows that if there are (coordinates " Z ").
I wonder if this is the reason why the commands are not executed correctly.

babadmin

  • Administrator
  • Jr. Member
  • *****
  • Posts: 97
    • View Profile
Re: Copy, Array and Mirror Commands.
« Reply #1 on: June 05, 2017, 06:26:06 pm »
Thank you very much for congratulations.

About COPY command: you're doing all well, you just have to do command PASTE or Ctrl-V to paste your objects from clipboard. I know this is maybe a bit different than copy command in AutoCAD. Maybe I will change command DUPLICATE and there you will be immediately be asked to specify paste location.

About Z-coordinate in COPY command: It's  a bug and I will fix it (in LISP also). BabaCAD 2017 Update 1 with a few bug fixes will be available on the end of this month.

medina19678

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Copy, Array and Mirror Commands.
« Reply #2 on: June 06, 2017, 04:46:05 pm »
Thank you for the quick response.
Yesterday forgot to comment that codes 10 and 11, usually associated with the beginning and end of a line, appear as 10 and 10, is it on purpose ?. In the DXF file, codes 10,20 and 30 and 11, 21 and 31 for x, y and z appear at the start and end of the line. If that's the case, I would only change the way I access those codes through lisp programs.
I can not wait for the next version.
Keep going.

babadmin

  • Administrator
  • Jr. Member
  • *****
  • Posts: 97
    • View Profile
Re: Copy, Array and Mirror Commands.
« Reply #3 on: June 06, 2017, 07:57:44 pm »
I just checked (entget(car(entsel))) and I found that you're right. It's bug and it has to be (10 x1 y1 z1)(11 x2 y2 z2). Also there is bug with filling z-coordinate (now it's always 0.0). Will fix this in Update 1 (it's not a new version, just update and it will be available soon).