User Data Linkage

Discussion in 'Microstation' started by sworna vidhya, Jul 2, 2003.

  1. Hai,
    How to create an User Data Linkage with feild that contains 10
    digits number. Is it possible to store the Hexa value of that number
    as such in User Data Linkage. I noticed that every User Data Linkage
    is having only 4 digits per parameter. So to create an user data
    linkage with 10 digits number, suggest me whether it is possible or
    not.

    Help me ideas and suggestions...

    regards,
    Vidhya.
     
    sworna vidhya, Jul 2, 2003
    #1
  2. sworna vidhya

    Mike Palmer Guest

    Here are two methods of setting user data that may work for you.

    Option 1
    long *dataP = NULL;
    short userData[8];

    userData[0] = 0x1007;
    userData[1] = 1; /* user ID */
    dataP = (short *)(&userData[2]);
    *dataP = 4294967295;

    Option 2
    long data = 4294967295;
    short userData[8];

    userData[0] = 0x1007;
    userData[1] = 1; /* user ID */
    memcpy (&userData[2], &data, sizeof (long));
     
    Mike Palmer, Jul 3, 2003
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.