KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ORCAD_PLACED_INSTANCE Struct Reference

A placed part instance on a page (structure type 13). More...

#include <orcad_records.h>

Public Attributes

std::string pkgName
 
uint32_t dbId = 0
 
int x = 0
 
int y = 0
 
std::string reference
 
std::string value
 resolved Part Value
 
std::map< std::string, std::string > props
 short-prefix property pairs
 
std::vector< ORCAD_DISPLAY_PROPdisplayProps
 
int color = 0
 
int rotation = 0
 0..3 quarter turns
 
bool mirror = false
 orientation bit 2
 
ORCAD_BBOX bbox
 placed box, page DBU
 
std::string sourcePackage
 package base name
 
std::vector< ORCAD_PIN_INSTpins
 successfully parsed T0x10 records
 

Detailed Description

A placed part instance on a page (structure type 13).

Body layout: 8 unknown bytes, lzt pkgName (cache symbol name, e.g. "C.Normal"), u32 dbId, placed bounding box as i16 y1, x1, y2, x2 (NOTE the y-first order), i16 x, i16 y (anchor), u8 color, u8 orientation (bits 0..1 = quarter turns, bit 2 = mirror), 2 unknown bytes, u16 display-prop count (framed structures), 1 unknown byte, lzt reference, u32 value string-table index (the Part Value directly follows the reference; the next 10 bytes are unknown), u16 pin count (framed T0x10 structures), lzt sourcePackage, 2 unknown bytes.

The placed bbox INCLUDES the displayed text; the symbol body box must be derived from the cache definition bbox plus the orientation transform.

Definition at line 277 of file orcad_records.h.

Member Data Documentation

◆ bbox

◆ color

int ORCAD_PLACED_INSTANCE::color = 0

Definition at line 287 of file orcad_records.h.

Referenced by OrcadReadPlacedInstance(), and v2PlacedInstance().

◆ dbId

uint32_t ORCAD_PLACED_INSTANCE::dbId = 0

◆ displayProps

std::vector<ORCAD_DISPLAY_PROP> ORCAD_PLACED_INSTANCE::displayProps

◆ mirror

bool ORCAD_PLACED_INSTANCE::mirror = false

◆ pins

◆ pkgName

◆ props

std::map<std::string, std::string> ORCAD_PLACED_INSTANCE::props

◆ reference

◆ rotation

int ORCAD_PLACED_INSTANCE::rotation = 0

◆ sourcePackage

std::string ORCAD_PLACED_INSTANCE::sourcePackage

◆ value

std::string ORCAD_PLACED_INSTANCE::value

resolved Part Value

Definition at line 284 of file orcad_records.h.

Referenced by OrcadReadPlacedInstance(), ORCAD_CONVERTER::placeInstance(), and v2PlacedInstance().

◆ x

◆ y


The documentation for this struct was generated from the following file: