Results 1 to 2 of 2

Thread: Writte variables in dotted pair

  1. #1
    Login to Give a bone
    0

    Default Writte variables in dotted pair

    hello, i need to write in a dotted pair a value of a variable
    x1=50

    (setq Props (list '("Prop1" . x1) ...

    when i do that props is
    (("Prop1" . x1)....

    and i need to be
    ("Prop1" . 50)

    how can I do?

  2. #2
    All AUGI, all the time
    Join Date
    2010-06
    Posts
    962
    Login to Give a bone
    0

    Default Re: Writte variables in dotted pair

    Hi,

    With the use of function cons you can build a dotted pairs.

    Code:
     
    (setq x1 50)
    (setq Props (cons "Prop1" x1))

Similar Threads

  1. Dot Pair
    By clxramos583784 in forum VBA/COM Interop
    Replies: 2
    Last Post: 2012-08-02, 11:46 PM
  2. Annoallvisible - 2nd Pair of Eyes Please?
    By ronsarlo in forum AutoLISP
    Replies: 1
    Last Post: 2009-04-15, 02:52 AM
  3. Removing a dotted pair
    By Shoey in forum AutoLISP
    Replies: 4
    Last Post: 2007-09-21, 02:10 PM
  4. Scheduling a window pair
    By dduarte in forum Revit Architecture - General
    Replies: 1
    Last Post: 2006-06-14, 08:33 AM
  5. Adding a Dotted Pair Into a Entity Definition Data
    By Kevin Janik in forum AutoLISP
    Replies: 6
    Last Post: 2005-09-03, 01:06 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •